diff --git a/conservancy/blog/models.py b/conservancy/blog/models.py index 58d8d608..faa0a329 100644 --- a/conservancy/blog/models.py +++ b/conservancy/blog/models.py @@ -59,7 +59,7 @@ class Entry(models.Model, bsoup.SoupModelMixin): # Ping google blogs and technorati. Taken from # http://blog.foozia.com/blog/2007/apr/21/ping-technorati-your-django-blog-using-xml-rpc/ def save(self): - if settings.CONSERVANCY_DEVEL or True: # "or True" means it is disabled always + if settings.DEBUG or True: # "or True" means it is disabled always super().save() return diff --git a/conservancy/news/models.py b/conservancy/news/models.py index d9edf28c..401ef79e 100644 --- a/conservancy/news/models.py +++ b/conservancy/news/models.py @@ -47,7 +47,7 @@ class PressRelease(models.Model, bsoup.SoupModelMixin): return self.pub_date > (datetime.now() - timedelta(days=30)) def save(self): - if settings.CONSERVANCY_DEVEL or True: + if settings.DEBUG or True: super().save() return diff --git a/conservancy/settings.py b/conservancy/settings.py index dc246439..847a4852 100644 --- a/conservancy/settings.py +++ b/conservancy/settings.py @@ -127,11 +127,18 @@ TEMPLATES = [ } ] +# Internationalization +TIME_ZONE = 'America/New_York' +LANGUAGE_CODE = 'en-us' + +STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR.parent / 'collected_static' STATICFILES_DIRS = [ BASE_DIR / 'static', ] +MEDIA_URL = '/media/' + MIDDLEWARE = [ 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',