Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Delta Between Two Patch Sets: settings.py

Issue 908: [issue6] Google's Users API Integration (Closed) SVN Base: http://google-app-engine-django.googlecode.com/svn/trunk/
Left Patch Set: Revised patch to support Django 0.96 Created 3 months, 3 weeks ago
Right Patch Set: DjangoUserModel, better helpers integration for authentication Created 3 months, 3 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 # Copyright 2008 Google Inc. 1 # Copyright 2008 Google Inc.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 # Django settings for google-app-engine-django project. 15 # Django settings for google-app-engine-django project.
16 16
17 import os 17 import os
18 18
19 DEBUG = True 19 DEBUG = True
20 TEMPLATE_DEBUG = DEBUG 20 TEMPLATE_DEBUG = DEBUG
21 21
22 ADMINS = ( 22 ADMINS = (
23 # ('Your Name', 'your_email@domain.com'), 23 # ('Your Name', 'your_email@domain.com'),
24 ) 24 )
25 25
26 MANAGERS = ADMINS 26 MANAGERS = ADMINS
27 27
28 DATABASE_ENGINE = 'appengine' # 'postgresql_psycopg2', 'postgresql', 'mysql', ' sqlite3' or 'oracle'. 28 DATABASE_ENGINE = 'appengine' # 'postgresql_psycopg2', 'postgresql', 'mysql', ' sqlite3' or 'oracle'.
29 DATABASE_NAME = '' # Or path to database file if using sqlite3. 29 DATABASE_NAME = '' # Or path to database file if using sqlite3.
30 DATABASE_USER = '' # Not used with sqlite3. 30 DATABASE_USER = '' # Not used with sqlite3.
31 DATABASE_PASSWORD = '' # Not used with sqlite3. 31 DATABASE_PASSWORD = '' # Not used with sqlite3.
32 DATABASE_HOST = '' # Set to empty string for localhost. Not used wit h sqlite3. 32 DATABASE_HOST = '' # Set to empty string for localhost. Not used wit h sqlite3.
33 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. 33 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
34 34
35 # Local time zone for this installation. Choices can be found here: 35 # Local time zone for this installation. Choices can be found here:
36 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 36 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
37 # although not all choices may be available on all operating systems. 37 # although not all choices may be available on all operating systems.
38 # If running in a Windows environment this must be set to the same as your 38 # If running in a Windows environment this must be set to the same as your
39 # system time zone. 39 # system time zone.
40 TIME_ZONE = 'UTC' 40 TIME_ZONE = 'UTC'
41 41
42 # Language code for this installation. All choices can be found here: 42 # Language code for this installation. All choices can be found here:
43 # http://www.i18nguy.com/unicode/language-identifiers.html 43 # http://www.i18nguy.com/unicode/language-identifiers.html
44 LANGUAGE_CODE = 'en-us' 44 LANGUAGE_CODE = 'en-us'
45 45
46 SITE_ID = 1 46 SITE_ID = 1
47 47
48 # If you set this to False, Django will make some optimizations so as not 48 # If you set this to False, Django will make some optimizations so as not
49 # to load the internationalization machinery. 49 # to load the internationalization machinery.
50 USE_I18N = True 50 USE_I18N = True
51 51
52 # Absolute path to the directory that holds media. 52 # Absolute path to the directory that holds media.
53 # Example: "/home/media/media.lawrence.com/" 53 # Example: "/home/media/media.lawrence.com/"
54 MEDIA_ROOT = '' 54 MEDIA_ROOT = ''
55 55
56 # URL that handles the media served from MEDIA_ROOT. Make sure to use a 56 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
57 # trailing slash if there is a path component (optional in other cases). 57 # trailing slash if there is a path component (optional in other cases).
58 # Examples: "http://media.lawrence.com", "http://example.com/media/" 58 # Examples: "http://media.lawrence.com", "http://example.com/media/"
59 MEDIA_URL = '' 59 MEDIA_URL = ''
60 60
61 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 61 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
62 # trailing slash. 62 # trailing slash.
63 # Examples: "http://foo.com/media/", "/media/". 63 # Examples: "http://foo.com/media/", "/media/".
64 ADMIN_MEDIA_PREFIX = '/media/' 64 ADMIN_MEDIA_PREFIX = '/media/'
65 65
66 # Make this unique, and don't share it with anybody. 66 # Make this unique, and don't share it with anybody.
67 SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx' 67 SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx'
68 68
69 # List of callables that know how to import templates from various sources. 69 # List of callables that know how to import templates from various sources.
70 TEMPLATE_LOADERS = ( 70 TEMPLATE_LOADERS = (
71 'django.template.loaders.filesystem.load_template_source', 71 'django.template.loaders.filesystem.load_template_source',
72 'django.template.loaders.app_directories.load_template_source', 72 'django.template.loaders.app_directories.load_template_source',
73 # 'django.template.loaders.eggs.load_template_source', 73 # 'django.template.loaders.eggs.load_template_source',
74 ) 74 )
75 75
76 MIDDLEWARE_CLASSES = ( 76 MIDDLEWARE_CLASSES = (
77 'django.middleware.common.CommonMiddleware', 77 'django.middleware.common.CommonMiddleware',
78 # 'django.contrib.sessions.middleware.SessionMiddleware', 78 # 'django.contrib.sessions.middleware.SessionMiddleware',
79 'django.contrib.auth.middleware.AuthenticationMiddleware', 79 'django.contrib.auth.middleware.AuthenticationMiddleware',
80 # 'django.middleware.doc.XViewMiddleware', 80 # 'django.middleware.doc.XViewMiddleware',
81 ) 81 )
82 82
83 TEMPLATE_CONTEXT_PROCESSORS = ( 83 TEMPLATE_CONTEXT_PROCESSORS = (
84 'django.core.context_processors.auth', 84 'django.core.context_processors.auth',
85 'django.core.context_processors.debug', 85 'django.core.context_processors.debug',
86 'django.core.context_processors.i18n', 86 'django.core.context_processors.i18n',
87 # 'django.core.context_processors.media', # 0.97 only. 87 # 'django.core.context_processors.media', # 0.97 only.
88 # 'django.core.context_processors.request', 88 # 'django.core.context_processors.request',
89 ) 89 )
90 90
91 ROOT_URLCONF = 'urls' 91 ROOT_URLCONF = 'urls'
92 92
93 ROOT_PATH = os.path.dirname(__file__) 93 ROOT_PATH = os.path.dirname(__file__)
94 TEMPLATE_DIRS = ( 94 TEMPLATE_DIRS = (
95 os.path.join(ROOT_PATH, 'templates') 95 os.path.join(ROOT_PATH, 'templates')
96 ) 96 )
97 97
98 INSTALLED_APPS = ( 98 INSTALLED_APPS = (
99 'appengine_django', 99 'appengine_django',
100 'django.contrib.auth', 100 'django.contrib.auth',
101 # 'django.contrib.contenttypes', 101 # 'django.contrib.contenttypes',
102 # 'django.contrib.sessions', 102 # 'django.contrib.sessions',
103 # 'django.contrib.sites', 103 # 'django.contrib.sites',
104 ) 104 )
LEFTRIGHT

Powered by Google App Engine
This is Rietveld r305