41
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
42
DATABASE_NAME = 'sqlite.db' # Or path to database file if using sqlite3.
43
DATABASE_USER = '' # Not used with sqlite3.
44
DATABASE_PASSWORD = '' # Not used with sqlite3.
45
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
46
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
42
if django_version >= "1.1.2":
43
csrf_middleware = 'django.middleware.csrf.CsrfViewMiddleware'
46
'ENGINE': 'django.db.backends.sqlite3',
51
'django.template.loaders.filesystem.Loader',
52
'django.template.loaders.app_directories.Loader',
55
csrf_middleware = 'django.contrib.csrf.middleware.CsrfViewMiddleware'
57
'django.template.loaders.filesystem.load_template_source',
58
'django.template.loaders.app_directories.load_template_source',
60
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
61
DATABASE_NAME = 'sqlite.db' # Or path to database file if using sqlite3.
62
DATABASE_USER = '' # Not used with sqlite3.
63
DATABASE_PASSWORD = '' # Not used with sqlite3.
64
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
65
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
48
67
# Local time zone for this installation. Choices can be found here:
49
68
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
79
98
# Make this unique, and don't share it with anybody.
80
99
SECRET_KEY = '34958734985734985734985798437'
82
# List of callables that know how to import templates from various sources.
84
'django.template.loaders.filesystem.load_template_source',
85
'django.template.loaders.app_directories.load_template_source',
86
# 'django.template.loaders.eggs.load_template_source',
89
# django-openid-auth will *not* work with Django 1.1.1 or older, as it's
90
# missing the csrf_token template tag. This will allow it to work with
91
# Django 1.1.2 or later:
93
import django.middleware.csrf
95
csrf_middleware = 'django.contrib.csrf.middleware.CsrfViewMiddleware'
97
csrf_middleware = 'django.middleware.csrf.CsrfViewMiddleware'
99
101
MIDDLEWARE_CLASSES = (
100
102
'django.middleware.common.CommonMiddleware',
101
103
'django.contrib.sessions.middleware.SessionMiddleware',