Skip to content

Commit

Permalink
Fixes RemovedInDjango110Warning TEMPLATES warning
Browse files Browse the repository at this point in the history
/Users/damon/.virtualenvs/hitcount/lib/python3.5/site-packages/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates.
  "unable to load templates.", RemovedInDjango110Warning)
  • Loading branch information
thornomad committed Dec 23, 2015
1 parent 33e04c6 commit 294a9c3
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions example_project/example_project/settings.py
Expand Up @@ -25,8 +25,6 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


Expand Down Expand Up @@ -67,6 +65,29 @@
}
}

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'OPTIONS': {
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
'debug': DEBUG,
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
# Your stuff: custom template context processors go here
],
},
},
]

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

Expand Down

0 comments on commit 294a9c3

Please sign in to comment.