Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 218 lines (175 sloc) 6.284 kB
a823c31 @qgriffith inital
authored
1 # Django settings for openeats project.
2 import os
3
7823b8f @qgriffith start of the work to make the logo set in the setting file so people …
authored
4 DEBUG = True
a823c31 @qgriffith inital
authored
5 TEMPLATE_DEBUG = DEBUG
29094b1 @qgriffith basic design files and css added
authored
6 SERVE_MEDIA = True
a823c31 @qgriffith inital
authored
7
8 ADMINS = (
8f24f7d @qgriffith preparing settings file for install
authored
9 # ('Your Name', 'youremail@email.com'),
a823c31 @qgriffith inital
authored
10 )
11
12 MANAGERS = ADMINS
13
14 DATABASES = {
15 'default': {
65dbb0b @qgriffith fixed some documentation and the settings.py file to get ready for th…
authored
16 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
8f24f7d @qgriffith preparing settings file for install
authored
17 'NAME': '', # Or path to database file if using sqlite3.
a823c31 @qgriffith inital
authored
18 'USER': '', # Not used with sqlite3.
19 'PASSWORD': '', # Not used with sqlite3.
20 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
21 'PORT': '', # Set to empty string for default. Not used with sqlite3.
22 }
23 }
24
25 # Local time zone for this installation. Choices can be found here:
26 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27 # although not all choices may be available on all operating systems.
28 # On Unix systems, a value of None will cause Django to use the same
29 # timezone as the operating system.
30 # If running in a Windows environment this must be set to the same as your
31 # system time zone.
32
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
6599dd4 @qgriffith added a locale directory for transaltions and added a little style to…
authored
39 ugettext = lambda s: s
40
41 LANGUAGES = (
42 ('en', ugettext('English')),
43 ('de', ugettext('German')),
c5b70c5 @qgriffith getting rosseta to work so users can easily translate OpenEats
authored
44 ('es', ugettext('Spanish')),
6599dd4 @qgriffith added a locale directory for transaltions and added a little style to…
authored
45 )
46
47
a823c31 @qgriffith inital
authored
48 SITE_ID = 1
49
50 BASE_PATH = os.path.dirname(os.path.abspath(__file__))
51
52 CACHE_BACKEND = "file://"+os.path.join(BASE_PATH, 'cache')
53
54 # If you set this to False, Django will make some optimizations so as not
55 # to load the internationalization machinery.
56 USE_I18N = True
57
58 # If you set this to False, Django will not format dates, numbers and
59 # calendars according to the current locale
60 USE_L10N = True
61
62 # Absolute path to the directory that holds media.
63 # Example: "/home/media/media.lawrence.com/"
28b0e87 @qgriffith moved site_media to site-media and added a lot of bug fixes I found o…
authored
64 MEDIA_ROOT = os.path.join(BASE_PATH, 'site-media')
bb55997 @qgriffith renamed static to static-files
authored
65 STATIC_ROOT = os.path.join(BASE_PATH, 'static-files')
a823c31 @qgriffith inital
authored
66
67 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
68 # trailing slash if there is a path component (optional in other cases).
69 # Examples: "http://media.lawrence.com", "http://example.com/media/"
28b0e87 @qgriffith moved site_media to site-media and added a lot of bug fixes I found o…
authored
70 MEDIA_URL = '/site-media/'
bb55997 @qgriffith renamed static to static-files
authored
71 STATIC_URL = '/static-files/'
a823c31 @qgriffith inital
authored
72
73 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
74 # trailing slash.
75 # Examples: "http://foo.com/media/", "/media/".
d2be938 @qgriffith changed admin_url to point to static files for grappelli
authored
76 #ADMIN_MEDIA_PREFIX = '/site-media/admin/'
77 ADMIN_MEDIA_PREFIX = STATIC_URL + "grappelli/"
a823c31 @qgriffith inital
authored
78
79 # Make this unique, and don't share it with anybody.
80 SECRET_KEY = 'tk1ig_pa_p9^muz4vw4%#q@0no$=ce1*b$#s343jouyq9lj)k33j('
81
1356bb6 @qgriffith added a new profile module for users
authored
82 AUTH_PROFILE_MODULE = 'accounts.UserProfiles'
83
a823c31 @qgriffith inital
authored
84 # List of callables that know how to import templates from various sources.
85 TEMPLATE_LOADERS = (
86 'django.template.loaders.filesystem.Loader',
87 'django.template.loaders.app_directories.Loader',
88 'django.template.loaders.eggs.Loader',
89 )
90
8a1c88d @qgriffith added some style elements and the django app navbar
authored
91 TEMPLATE_CONTEXT_PROCESSORS = (
80beff9 @qgriffith changed the context processor for auth to the new location for django…
authored
92 "django.contrib.auth.context_processors.auth",
e0a0ffc @qgriffith added some styling to the recipe show page
authored
93 "django.core.context_processors.i18n",
6599dd4 @qgriffith added a locale directory for transaltions and added a little style to…
authored
94 "django.core.context_processors.debug",
d2be938 @qgriffith changed admin_url to point to static files for grappelli
authored
95 "django.core.context_processors.media",
96 'django.core.context_processors.static',
808d7ff @qgriffith added a new skin to the admin interface
authored
97 "django.core.context_processors.request",
480c31f @qgriffith added a course and cuisine add form, and added the messages tags to t…
authored
98 "django.contrib.messages.context_processors.messages",
8a1c88d @qgriffith added some style elements and the django app navbar
authored
99 "navbar.context_processors.navbars",
d7eb948 @qgriffith Added a context processor that takes the oelogo in the settings file …
authored
100 "openeats.context_processors.oelogo",
9b5e77a @qgriffith Added the ability for users to set the title of their site and update…
authored
101 "openeats.context_processors.oetitle",
808d7ff @qgriffith added a new skin to the admin interface
authored
102
8a1c88d @qgriffith added some style elements and the django app navbar
authored
103 )
104
a823c31 @qgriffith inital
authored
105 MIDDLEWARE_CLASSES = (
106 'django.contrib.sessions.middleware.SessionMiddleware',
e0a0ffc @qgriffith added some styling to the recipe show page
authored
107 'django.middleware.locale.LocaleMiddleware',
6599dd4 @qgriffith added a locale directory for transaltions and added a little style to…
authored
108 'django.middleware.common.CommonMiddleware',
a823c31 @qgriffith inital
authored
109 'django.middleware.csrf.CsrfViewMiddleware',
110 'django.contrib.auth.middleware.AuthenticationMiddleware',
111 'django.contrib.messages.middleware.MessageMiddleware',
52cb034 @qgriffith added a flatpage module and created the about page
authored
112 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
a823c31 @qgriffith inital
authored
113 'debug_toolbar.middleware.DebugToolbarMiddleware',
84ef6ba @qgriffith added a new pagination module
authored
114 'pagination.middleware.PaginationMiddleware',
9748e3e @qgriffith created the model for adding notes to recipes
authored
115
a823c31 @qgriffith inital
authored
116 )
117
a9eb9a2 @qgriffith set the locale path in the settings.py file, this is a new setting in…
authored
118 LOCALE_PATHS = (
119 os.path.join(BASE_PATH, 'locale',)
120 )
121
a823c31 @qgriffith inital
authored
122 ROOT_URLCONF = 'openeats.urls'
123
124 TEMPLATE_DIRS = (
a3cf1ba @qgriffith added a bunch of stuff for the ingredients module to relate to the re…
authored
125 os.path.join(BASE_PATH, 'templates'),
a823c31 @qgriffith inital
authored
126 )
127
128 INSTALLED_APPS = (
883e65f @qgriffith updated the admin dashboard to use grappeli admin dashboard settings …
authored
129 'grappelli.dashboard',
045d155 @qgriffith added a new admin feature which will allow custom modules to be creat…
authored
130 'grappelli',
a823c31 @qgriffith inital
authored
131 'django.contrib.auth',
132 'django.contrib.contenttypes',
133 'django.contrib.sessions',
134 'django.contrib.sites',
135 'django.contrib.messages',
136 'django.contrib.admin',
52cb034 @qgriffith added a flatpage module and created the about page
authored
137 'django.contrib.flatpages',
a682e84 @qgriffith setting up static files and moving grapelli out of the oe dir so it w…
authored
138 'django.contrib.staticfiles',
a823c31 @qgriffith inital
authored
139 'debug_toolbar',
bc5aa22 @qgriffith Removing django-tagging in favor of django-taggit. django-tagging is…
authored
140 'taggit',
8004745 @qgriffith start of the tag model to display recipes for a giving tag
authored
141 'taggit_templatetags',
832419b @qgriffith start of the grocery list fomr
authored
142 'south',
8a1c88d @qgriffith added some style elements and the django app navbar
authored
143 'navbar',
65276cd @qgriffith added disqus comments to the recipe detail page
authored
144 'disqus',
13b0fa7 @qgriffith added a very basic login and logout page
authored
145 'registration',
c5b70c5 @qgriffith getting rosseta to work so users can easily translate OpenEats
authored
146 'rosetta',
1356bb6 @qgriffith added a new profile module for users
authored
147 'profiles',
7092ec9 @qgriffith added the ability to upload photos to a recipe and added the module i…
authored
148 'imagekit',
adbf77d @qgriffith added the django-rating app to handle the backend for rating recipes,…
authored
149 'djangoratings',
0c624d9 @qgriffith basic haystack setup complete for the search engine
authored
150 'haystack',
84ef6ba @qgriffith added a new pagination module
authored
151 'sentry',
152 'sentry.client',
153 'pagination',
f1b48ff @qgriffith added the ability to add and remove items dynamically from the a groc…
authored
154 'django_extensions',
0b749fd @qgriffith Added django-relationships this will be expanded to allow users to fo…
authored
155 'relationships',
551efb5 @qgriffith added tastypie to the settings.py file, will be commented out for rel…
authored
156 'tastypie',
c0ac9fa @qgriffith added a few new fields for the profile table and styled the profile form
authored
157 'openeats',
a823c31 @qgriffith inital
authored
158 'openeats.recipe',
159 'openeats.recipe_groups',
a3cf1ba @qgriffith added a bunch of stuff for the ingredients module to relate to the re…
authored
160 'openeats.ingredient',
1356bb6 @qgriffith added a new profile module for users
authored
161 'openeats.accounts',
65dca18 @qgriffith added a new news app
authored
162 'openeats.news',
3b90642 @qgriffith start of the grocery list module
authored
163 'openeats.list',
a823c31 @qgriffith inital
authored
164 )
165
166
7823b8f @qgriffith start of the work to make the logo set in the setting file so people …
authored
167 #OpenEats2 Settings
168 OELOGO = 'images/oelogo.png'
9b5e77a @qgriffith Added the ability for users to set the title of their site and update…
authored
169 OETITLE = 'OpenEats2 Dev'
170
7823b8f @qgriffith start of the work to make the logo set in the setting file so people …
authored
171
4f8889d @qgriffith fixed a typo in the settings.py file for the INTERNAL_IPS
authored
172 INTERNAL_IPS = ('127.0.0.1',)
8f24f7d @qgriffith preparing settings file for install
authored
173
a823c31 @qgriffith inital
authored
174 ### DEBUG-TOOLBAR SETTINGS
175 DEBUG_TOOLBAR_CONFIG = {
3bf57f8 @qgriffith added load data for course and cuisine
authored
176 'INTERCEPT_REDIRECTS': False,
a823c31 @qgriffith inital
authored
177 }
178
179 DEBUG_TOOLBAR_PANELS = (
180 'debug_toolbar.panels.version.VersionDebugPanel',
181 'debug_toolbar.panels.timer.TimerDebugPanel',
182 'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
183 'debug_toolbar.panels.headers.HeaderDebugPanel',
184 'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
185 'debug_toolbar.panels.template.TemplateDebugPanel',
186 'debug_toolbar.panels.sql.SQLDebugPanel',
a62ea9d @qgriffith upgraded all third party packages, added a changelog for the 2.1 rele…
authored
187 'debug_toolbar.panels.signals.SignalDebugPanel',
a823c31 @qgriffith inital
authored
188 'debug_toolbar.panels.logger.LoggingPanel',
189 )
8f24f7d @qgriffith preparing settings file for install
authored
190
3d109df @qgriffith added a configuration section to the documentation
authored
191
192 #Email Server Settings
193 DEFAULT_FROM_EMAIL = ''
194 EMAIL_HOST = ''
195 EMAIL_HOST_USER = ''
196 EMAIL_HOST_PASSWORD = ''
197 EMAIL_PORT =''
198 #EMAIL_USE_TLS = True
199
13b6b2f @qgriffith added a basic registartion for users
authored
200 #registration
13b0fa7 @qgriffith added a very basic login and logout page
authored
201 LOGIN_REDIRECT_URL = "/recipe/"
13b6b2f @qgriffith added a basic registartion for users
authored
202 ACCOUNT_ACTIVATION_DAYS = 7
13b0fa7 @qgriffith added a very basic login and logout page
authored
203
0c624d9 @qgriffith basic haystack setup complete for the search engine
authored
204 #Haystack config
205 HAYSTACK_SITECONF = 'openeats.search_sites'
206 HAYSTACK_SEARCH_ENGINE = 'whoosh'
207 HAYSTACK_WHOOSH_PATH = os.path.join(BASE_PATH, 'search_index')
208
dbc6b9a @qgriffith Changed the Grappelli_Admin_title to equal OETITLE
authored
209 GRAPPELLI_ADMIN_TITLE = OETITLE
883e65f @qgriffith updated the admin dashboard to use grappeli admin dashboard settings …
authored
210 GRAPPELLI_INDEX_DASHBOARD = 'openeats.dashboard.CustomIndexDashboard'
9e9d43b @qgriffith admin site tweeks
authored
211
84ef6ba @qgriffith added a new pagination module
authored
212 PAGINATION_DEFAULT_PAGINATION = 10
213
65276cd @qgriffith added disqus comments to the recipe detail page
authored
214 try:
215 from local_settings import *
216 except ImportError:
217 pass
Something went wrong with that request. Please try again.