Skip to content
Snippets Groups Projects
Unverified Commit 61b6e3f7 authored by Luke Murphy's avatar Luke Murphy
Browse files

Add django-extensions for hacking.

parent 79116cad
No related branches found
No related tags found
1 merge request!61Add manual translations field to Message
...@@ -40,3 +40,4 @@ pytest-django = "*" ...@@ -40,3 +40,4 @@ pytest-django = "*"
pytest-pythonpath = "*" pytest-pythonpath = "*"
pytest-cov = "*" pytest-cov = "*"
pytest-env = "*" pytest-env = "*"
django-extensions = "*"
...@@ -110,7 +110,6 @@ DATA_LAYER_APPS = ( ...@@ -110,7 +110,6 @@ DATA_LAYER_APPS = (
INSTALLED_APPS = DATA_LAYER_APPS + LOCAL_APPS + THIRD_PARTY_APPS + DJANGO_APPS INSTALLED_APPS = DATA_LAYER_APPS + LOCAL_APPS + THIRD_PARTY_APPS + DJANGO_APPS
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
...@@ -195,7 +194,6 @@ REST_FRAMEWORK = { ...@@ -195,7 +194,6 @@ REST_FRAMEWORK = {
} }
def update_recursive(dest, source): def update_recursive(dest, source):
for k, v in source.iteritems(): for k, v in source.iteritems():
if dest.get(k, None) and isinstance(v, collections.Mapping): if dest.get(k, None) and isinstance(v, collections.Mapping):
...@@ -250,3 +248,6 @@ TEMPLATES = [ ...@@ -250,3 +248,6 @@ TEMPLATES = [
] ]
CSRF_FAILURE_VIEW = 'hid.views.csrf.csrf_failure' CSRF_FAILURE_VIEW = 'hid.views.csrf.csrf_failure'
if DEBUG:
INSTALLED_APPS += ('django_extensions',)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment