Skip to content

Commit a18f46c

Browse files
committed
ensure demo runs in modern installations (django 1.4+)
1 parent 1d57afe commit a18f46c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

demo/settings.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
MANAGERS = ADMINS
1414

15-
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
16-
DATABASE_NAME = 'demo.sqlite' # Or path to database file if using sqlite3.
17-
DATABASE_USER = '' # Not used with sqlite3.
18-
DATABASE_PASSWORD = '' # Not used with sqlite3.
19-
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
20-
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
15+
DATABASES = {
16+
'default': {
17+
'ENGINE': 'django.db.backends.sqlite3',
18+
'NAME': 'demo.sqlite',
19+
}
20+
}
2121

2222
# Local time zone for this installation. Choices can be found here:
2323
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@@ -55,8 +55,8 @@
5555

5656
# List of callables that know how to import templates from various sources.
5757
TEMPLATE_LOADERS = (
58-
'django.template.loaders.filesystem.load_template_source',
59-
'django.template.loaders.app_directories.load_template_source',
58+
'django.template.loaders.filesystem.Loader',
59+
'django.template.loaders.app_directories.Loader',
6060
)
6161

6262
MIDDLEWARE_CLASSES = (
@@ -75,7 +75,7 @@
7575
)
7676

7777
TEMPLATE_CONTEXT_PROCESSORS = (
78-
'django.core.context_processors.auth',
78+
'django.contrib.auth.context_processors.auth',
7979
'django.core.context_processors.media',
8080
#'django.core.context_processors.i18n',
8181
#'django.core.context_processors.request',

0 commit comments

Comments
 (0)