Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 172 lines (148 sloc) 5.277 kb
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
1 # Django settings for cmsdemo2 project.
4f7ee26 Initial commit
Mark Ransom authored
2
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
3 import os
4f7ee26 Initial commit
Mark Ransom authored
4 gettext = lambda s: s
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
5 PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
4f7ee26 Initial commit
Mark Ransom authored
6
7 DEBUG = True
8 TEMPLATE_DEBUG = DEBUG
9
10 ADMINS = (
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
11 # ('Your Name', 'your_email@example.com'),
4f7ee26 Initial commit
Mark Ransom authored
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASES = {
17 'default': {
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
18 'ENGINE': 'django.db.backends.sqlite3',
19 'NAME': os.path.join(PROJECT_DIR, 'database.sqlite'),
4f7ee26 Initial commit
Mark Ransom authored
20 }
21 }
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
22 CMS_TEMPLATES = (
23 ('blank.html', 'Blank'),
24 )
4f7ee26 Initial commit
Mark Ransom authored
25
26 # Local time zone for this installation. Choices can be found here:
27 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28 # although not all choices may be available on all operating systems.
29 # On Unix systems, a value of None will cause Django to use the same
30 # timezone as the operating system.
31 # If running in a Windows environment this must be set to the same as your
32 # system time zone.
33 TIME_ZONE = 'America/Chicago'
34
35 # Language code for this installation. All choices can be found here:
36 # http://www.i18nguy.com/unicode/language-identifiers.html
37 LANGUAGE_CODE = 'en-us'
38
39 SITE_ID = 1
40
41 # If you set this to False, Django will make some optimizations so as not
42 # to load the internationalization machinery.
43 USE_I18N = True
44
45 # If you set this to False, Django will not format dates, numbers and
46 # calendars according to the current locale
47 USE_L10N = True
48
49 # Absolute filesystem path to the directory that will hold user-uploaded files.
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
50 # Example: "/home/media/media.lawrence.com/media/"
4f7ee26 Initial commit
Mark Ransom authored
51 MEDIA_ROOT = os.path.join(PROJECT_DIR, "media")
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
52 MEDIA_URL = "/media/"
53
54 # Absolute path to the directory static files should be collected to.
55 # Don't put anything in this directory yourself; store your static files
56 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
57 # Example: "/home/media/media.lawrence.com/static/"
58 STATIC_ROOT = os.path.join(PROJECT_DIR, "static")
59 STATIC_URL = "/static/"
60 ADMIN_MEDIA_PREFIX = "/static/admin/"
61
62 # Additional locations of static files
63 STATICFILES_DIRS = (
64 # Put strings here, like "/home/html/static" or "C:/www/django/static".
65 # Always use forward slashes, even on Windows.
66 # Don't forget to use absolute paths, not relative paths.
4f7ee26 Initial commit
Mark Ransom authored
67 )
68
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
69 # List of finder classes that know how to find static files in
70 # various locations.
71 STATICFILES_FINDERS = (
72 'django.contrib.staticfiles.finders.FileSystemFinder',
73 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
74 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
4f7ee26 Initial commit
Mark Ransom authored
75 )
76
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
77 # Make this unique, and don't share it with anybody.
78 SECRET_KEY = 'dan+40ima*torfgx3#!_wd3#vw_&kxo@$5@8=7t&mr5vb-&vjl'
4f7ee26 Initial commit
Mark Ransom authored
79
80 # List of callables that know how to import templates from various sources.
81 TEMPLATE_LOADERS = (
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
82 'django.template.loaders.filesystem.Loader',
83 'django.template.loaders.app_directories.Loader',
84 # 'django.template.loaders.eggs.Loader',
4f7ee26 Initial commit
Mark Ransom authored
85 )
86
87 MIDDLEWARE_CLASSES = (
88 'django.middleware.common.CommonMiddleware',
89 'django.contrib.sessions.middleware.SessionMiddleware',
90 'django.middleware.csrf.CsrfViewMiddleware',
91 'django.contrib.auth.middleware.AuthenticationMiddleware',
92 'django.contrib.messages.middleware.MessageMiddleware',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
93 #'cms.middleware.multilingual.MultilingualURLMiddleware',
4f7ee26 Initial commit
Mark Ransom authored
94 'cms.middleware.page.CurrentPageMiddleware',
95 'cms.middleware.user.CurrentUserMiddleware',
96 'cms.middleware.toolbar.ToolbarMiddleware',
97 )
98
99 ROOT_URLCONF = 'demo.urls'
100
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
101 TEMPLATE_CONTEXT_PROCESSORS = (
102 'django.contrib.auth.context_processors.auth',
103 'django.core.context_processors.i18n',
104 'django.core.context_processors.request',
105 'django.core.context_processors.media',
106 'django.core.context_processors.static',
107 'cms.context_processors.media',
108 'sekizai.context_processors.sekizai',
4f7ee26 Initial commit
Mark Ransom authored
109 )
110
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
111 TEMPLATE_DIRS = (
112 # The docs say it should be absolute path: PROJECT_DIR is precisely one.
113 # Life is wonderful!
114 os.path.join(PROJECT_DIR, "templates"),
4f7ee26 Initial commit
Mark Ransom authored
115 )
116
117 INSTALLED_APPS = (
118 'django.contrib.auth',
119 'django.contrib.contenttypes',
120 'django.contrib.sessions',
121 'django.contrib.sites',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
122 'django.contrib.messages',
123 'django.contrib.staticfiles',
124 # Uncomment the next line to enable the admin:
4f7ee26 Initial commit
Mark Ransom authored
125 'django.contrib.admin',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
126 # Uncomment the next line to enable admin documentation:
127 # 'django.contrib.admindocs',
4f7ee26 Initial commit
Mark Ransom authored
128 'cms',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
129 'cms.plugins.file',
130 'cms.plugins.picture',
131 'cms.plugins.flash',
132 'cms.plugins.googlemap',
133 'cms.plugins.link',
134 'cms.plugins.snippet',
135 'cms.plugins.teaser',
4f7ee26 Initial commit
Mark Ransom authored
136 'cms.plugins.text',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
137 'cms.plugins.video',
138 'cms.plugins.twitter',
4f7ee26 Initial commit
Mark Ransom authored
139 'mptt',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
140 'menus',
4f7ee26 Initial commit
Mark Ransom authored
141 'south',
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
142 'sekizai',
4f7ee26 Initial commit
Mark Ransom authored
143 'cms_themes',
144 )
145
6562410 Fixing some issues, updated demo app to use django 1.3.1 and django-cms ...
Mark Ransom authored
146 LANGUAGES = [
147 ('en', 'English'),
148 ]
149
150 # A sample logging configuration. The only tangible logging
151 # performed by this configuration is to send an email to
152 # the site admins on every HTTP 500 error.
153 # See http://docs.djangoproject.com/en/dev/topics/logging for
154 # more details on how to customize your logging configuration.
155 LOGGING = {
156 'version': 1,
157 'disable_existing_loggers': False,
158 'handlers': {
159 'mail_admins': {
160 'level': 'ERROR',
161 'class': 'django.utils.log.AdminEmailHandler'
162 }
163 },
164 'loggers': {
165 'django.request': {
166 'handlers': ['mail_admins'],
167 'level': 'ERROR',
168 'propagate': True,
169 },
170 }
171 }
Something went wrong with that request. Please try again.