Revision d3d01073 settings.py.dist
b/settings.py.dist | ||
---|---|---|
1 | 1 |
# Django settings for eduroam project. |
2 |
import os |
|
2 | 3 |
|
3 | 4 |
DEBUG = True |
4 | 5 |
TEMPLATE_DEBUG = DEBUG |
6 |
here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x) |
|
5 | 7 |
|
6 | 8 |
ADMINS = ( |
7 |
# ('Your Name', 'your_email@domain.com'),
|
|
9 |
('Admin','admin@example.com'),
|
|
8 | 10 |
) |
9 | 11 |
|
10 | 12 |
MANAGERS = ADMINS |
... | ... | |
17 | 19 |
'PASSWORD': '', # Not used with sqlite3. |
18 | 20 |
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
19 | 21 |
'PORT': '', # Set to empty string for default. Not used with sqlite3. |
20 |
'STORAGE_ENGINE': 'INNODB', |
|
22 |
'STORAGE_ENGINE': 'INNODB',
|
|
21 | 23 |
} |
22 | 24 |
} |
23 | 25 |
|
... | ... | |
30 | 32 |
# system time zone. |
31 | 33 |
TIME_ZONE = 'Europe/Athens' |
32 | 34 |
|
35 |
|
|
33 | 36 |
_ = lambda s: s |
34 | 37 |
|
35 | 38 |
LANGUAGES = ( |
... | ... | |
55 | 58 |
# Example: "/home/media/media.lawrence.com/" |
56 | 59 |
MEDIA_ROOT = '' |
57 | 60 |
|
58 |
STATIC_URL = '' |
|
59 |
|
|
60 | 61 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
61 | 62 |
# trailing slash if there is a path component (optional in other cases). |
62 | 63 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
63 | 64 |
MEDIA_URL = '' |
64 | 65 |
|
66 |
STATIC_URL = '/path/to/static/' |
|
67 |
|
|
65 | 68 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
66 | 69 |
# trailing slash. |
67 | 70 |
# Examples: "http://foo.com/media/", "/media/". |
... | ... | |
90 | 93 |
MIDDLEWARE_CLASSES = ( |
91 | 94 |
'django.middleware.common.CommonMiddleware', |
92 | 95 |
'django.contrib.sessions.middleware.SessionMiddleware', |
96 |
'django.middleware.locale.LocaleMiddleware', |
|
93 | 97 |
'django.middleware.csrf.CsrfViewMiddleware', |
94 | 98 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
95 | 99 |
'django.contrib.messages.middleware.MessageMiddleware', |
... | ... | |
98 | 102 |
ROOT_URLCONF = 'eduroam.urls' |
99 | 103 |
|
100 | 104 |
TEMPLATE_DIRS = ( |
105 |
"/path/to/templaltes/" |
|
101 | 106 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
102 | 107 |
# Always use forward slashes, even on Windows. |
103 | 108 |
# Don't forget to use absolute paths, not relative paths. |
... | ... | |
109 | 114 |
'django.contrib.sessions', |
110 | 115 |
'django.contrib.sites', |
111 | 116 |
'django.contrib.messages', |
112 |
'south', |
|
113 | 117 |
'edumanage', |
118 |
'accounts', |
|
119 |
'south', |
|
120 |
'django_extensions', |
|
114 | 121 |
# Uncomment the next line to enable the admin: |
115 |
# 'django.contrib.admin',
|
|
122 |
'django.contrib.admin', |
|
116 | 123 |
# Uncomment the next line to enable admin documentation: |
117 |
# 'django.contrib.admindocs',
|
|
124 |
'django.contrib.admindocs', |
|
118 | 125 |
) |
126 |
|
|
127 |
AUTH_PROFILE_MODULE = 'accounts.UserProfile' |
|
128 |
|
|
129 |
KML_FILE = here('all.kml') |
Also available in: Unified diff