Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/rietveld/templates/settings.py.erb

Issue 5459448122310656: Add rietveld to infrastructure (Closed)
Patch Set: Apply Changes Created Feb. 7, 2014, 5:16 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Django settings for django_gae2django project.
2
3 # NOTE: Keep the settings.py in examples directories in sync with this one!
4
5 import os
6
7 DEBUG = True
8 TEMPLATE_DEBUG = DEBUG
9
10 ADMINS = (
11 # ('Your Name', 'your_email@domain.com'),
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', ' sqlite3' or 'oracle'.
17 DATABASE_NAME = 'dev.db' # Or path to database file if using sqlite3.
18 DATABASE_USER = '' # Not used with sqlite3.
19 DATABASE_PASSWORD = '' # Not used with sqlite3.
20 DATABASE_HOST = '' # Set to empty string for localhost. Not used wit h sqlite3.
21 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
22
23 # Local time zone for this installation. Choices can be found here:
24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25 # although not all choices may be available on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
27 # system time zone.
28 TIME_ZONE = 'Europe/Berlin'
29
30 # Language code for this installation. All choices can be found here:
31 # http://www.i18nguy.com/unicode/language-identifiers.html
32 LANGUAGE_CODE = 'en-us'
33
34 SITE_ID = 1
35
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
38 USE_I18N = True
39
40 # Absolute path to the directory that holds media.
41 # Example: "/home/media/media.lawrence.com/"
42 MEDIA_ROOT = ''
43
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
45 # trailing slash if there is a path component (optional in other cases).
46 # Examples: "http://media.lawrence.com", "http://example.com/media/"
47 MEDIA_URL = '/static/'
48
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50 # trailing slash.
51 # Examples: "http://foo.com/media/", "/media/".
52 ADMIN_MEDIA_PREFIX = '/media/'
53
54 # Make this unique, and don't share it with anybody.
55 SECRET_KEY = '<%= @secret_key %>'
56
57 # List of callables that know how to import templates from various sources.
58 TEMPLATE_LOADERS = (
59 'django.template.loaders.filesystem.load_template_source',
60 'django.template.loaders.app_directories.load_template_source',
61 # 'django.template.loaders.eggs.load_template_source',
62 )
63
64
65 MIDDLEWARE_CLASSES = (
66 'django.middleware.common.CommonMiddleware',
67 'django.contrib.sessions.middleware.SessionMiddleware',
68 'django.contrib.auth.middleware.AuthenticationMiddleware',
69 'gae2django.middleware.FixRequestUserMiddleware',
70 # Keep in mind, that CSRF protection is DISABLED in this example!
71 'rietveld_helper.middleware.DisableCSRFMiddleware',
72 'rietveld_helper.middleware.AddUserToRequestMiddleware',
73 'django.middleware.doc.XViewMiddleware',
74 )
75
76 TEMPLATE_CONTEXT_PROCESSORS = (
77 'django.core.context_processors.auth', # required by admin panel
78 'django.core.context_processors.request',
79 )
80
81 ROOT_URLCONF = 'rietveld_helper.urls'
82
83 TEMPLATE_DIRS = (
84 os.path.join(os.path.dirname(__file__), 'templates'),
85 )
86
87 INSTALLED_APPS = (
88 'django.contrib.auth',
89 'django.contrib.contenttypes',
90 'django.contrib.sessions',
91 'django.contrib.sites',
92 'django.contrib.admin',
93 'gae2django',
94 'rietveld_helper',
95 'codereview',
96 'gunicorn',
97 )
98
99 AUTH_PROFILE_MODULE = 'codereview.Account'
100 LOGIN_REDIRECT_URL = '/'
101 #
102 # This won't work with gae2django.
103 RIETVELD_INCOMING_MAIL_ADDRESS = None
104
105 RIETVELD_REVISION = ''
106
107 UPLOAD_PY_SOURCE = os.path.join(os.path.dirname(__file__), 'upload.py')
OLDNEW

Powered by Google App Engine
This is Rietveld