27
27
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
28
# POSSIBILITY OF SUCH DAMAGE.
30
# Django settings for example project.
31
Django settings for example_consumer project.
33
For more information on this file, see
34
https://docs.djangoproject.com/en/1.7/topics/settings/
36
For the full list of settings and their values, see
37
https://docs.djangoproject.com/en/1.7/ref/settings/
40
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
32
django_version = django.get_version()
44
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
47
# Quick-start development settings - unsuitable for production
48
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
50
# SECURITY WARNING: keep the secret key used in production secret!
51
SECRET_KEY = '34958734985734985734985798437'
53
# SECURITY WARNING: don't run with debug turned on in production!
34
TEMPLATE_DEBUG = DEBUG
37
# ('Your Name', 'your_email@domain.com'),
42
if django_version >= "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.
67
# Local time zone for this installation. Choices can be found here:
68
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
69
# although not all variations may be possible on all operating systems.
70
# If running in a Windows environment this must be set to the same as your
72
TIME_ZONE = 'America/Chicago'
74
# Language code for this installation. All choices can be found here:
75
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
76
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
77
LANGUAGE_CODE = 'en-us'
81
# If you set this to False, Django will make some optimizations so as not
82
# to load the internationalization machinery.
85
# Absolute path to the directory that holds media.
86
# Example: "/home/media/media.lawrence.com/"
89
# URL that handles the media served from MEDIA_ROOT.
90
# Example: "http://media.lawrence.com"
93
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
95
# Examples: "http://foo.com/media/", "/media/".
96
ADMIN_MEDIA_PREFIX = '/media/'
98
# Make this unique, and don't share it with anybody.
99
SECRET_KEY = '34958734985734985734985798437'
101
60
MIDDLEWARE_CLASSES = (
102
61
'django.middleware.common.CommonMiddleware',
103
62
'django.contrib.sessions.middleware.SessionMiddleware',
104
63
'django.contrib.auth.middleware.AuthenticationMiddleware',
108
ROOT_URLCONF = 'example_consumer.urls'
111
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
112
# Always use forward slashes, even on Windows.
113
# Don't forget to use absolute paths, not relative paths.
64
'django.middleware.csrf.CsrfViewMiddleware',
67
# Application definition
116
69
INSTALLED_APPS = (
117
70
'django.contrib.auth',
119
72
'django.contrib.sessions',
120
73
'django.contrib.admin',
121
74
'django_openid_auth',
77
if django.VERSION < (1, 7):
78
INSTALLED_APPS += ('south',)
80
ROOT_URLCONF = 'example_consumer.urls'
82
WSGI_APPLICATION = 'example_consumer.wsgi.application'
85
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
89
'ENGINE': 'django.db.backends.sqlite3',
90
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
94
# Internationalization
95
# https://docs.djangoproject.com/en/1.7/topics/i18n/
97
LANGUAGE_CODE = 'en-us'
105
# Static files (CSS, JavaScript, Images)
106
# https://docs.djangoproject.com/en/1.7/howto/static-files/
108
STATIC_URL = '/static/'
110
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
125
112
AUTHENTICATION_BACKENDS = (
126
113
'django_openid_auth.auth.OpenIDBackend',
127
114
'django.contrib.auth.backends.ModelBackend',