Added ALLOWED_HOSTS variable to development settings if you wan't to text without debug = true

This commit is contained in:
Felipe Martín 2013-05-27 16:29:04 +02:00
parent d2e0fb1f4e
commit 1c94d6883e
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ from settings import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1'
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',