# HG changeset patch # User Brian Neal # Date 1335733201 18000 # Node ID 3fe2eced1be74c705743dd413846ff1e23669be9 # Parent 7cec8d6f95816e7bc62bf4f801bd421f9742dcf3 Now developing on Ubuntu 12.04 with Python 2.7. Use symbolic links for media, so add media/banners to .hgignore. I had a syntax error in banner_tags.py that only Python 2.7 caught. For local development, read database name from SECRETS. diff -r 7cec8d6f9581 -r 3fe2eced1be7 .hgignore --- a/.hgignore Sat Mar 10 15:24:46 2012 -0600 +++ b/.hgignore Sun Apr 29 16:00:01 2012 -0500 @@ -7,10 +7,11 @@ *.mp3 static_serve media/avatars/users +media/badges +media/banners media/downloads +media/podcast media/potd -media/badges -media/podcast media/smiley gpp/celerybeat-schedule gpp/xapian_index diff -r 7cec8d6f9581 -r 3fe2eced1be7 gpp/banners/templatetags/banner_tags.py --- a/gpp/banners/templatetags/banner_tags.py Sat Mar 10 15:24:46 2012 -0600 +++ b/gpp/banners/templatetags/banner_tags.py Sun Apr 29 16:00:01 2012 -0500 @@ -53,7 +53,7 @@ if urls: try: conn.rpush(key, *urls) - except redis.RedisError: + except redis.RedisError, e: logger.error("banner_url: '%s' on rpush", e) pass diff -r 7cec8d6f9581 -r 3fe2eced1be7 gpp/settings/local.py --- a/gpp/settings/local.py Sat Mar 10 15:24:46 2012 -0600 +++ b/gpp/settings/local.py Sun Apr 29 16:00:01 2012 -0500 @@ -9,7 +9,7 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', - 'NAME': 'gremmies_portal', + 'NAME': SECRETS['DB_NAME'], 'USER': SECRETS['DB_USER'], 'PASSWORD': SECRETS['DB_PASSWORD'], },