author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 22 Jul 2010 19:54:31 +0530 | |
changeset 150 | 9e0d3287d753 |
parent 147 | c085ceb4652a |
child 152 | 64d37556e457 |
permissions | -rw-r--r-- |
1
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
import os |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
ADMINS = ( |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
('Madhusudan.C.S', 'admin@scipy.in'), |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
) |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
7 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
MANAGERS = ADMINS |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
9 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
10 |
DATABASE_HOST = '' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
11 |
DATABASE_PORT = '' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
12 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
13 |
TIME_ZONE = 'Asia/Kolkata' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
14 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
15 |
LANGUAGE_CODE = 'en-us' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
16 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
17 |
# Absolute path to the directory that holds media. |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
18 |
# Example: "/home/media/media.lawrence.com/" |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
19 |
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media') |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
20 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
21 |
USER_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media', 'user') |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
22 |
USER_MEDIA_PDF = os.path.join(os.path.dirname(__file__), 'media', 'pdf') |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
23 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
24 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
25 |
# trailing slash if there is a path component (optional in other cases). |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
26 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
27 |
MEDIA_URL = '/media/' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
28 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
29 |
USER_MEDIA_URL = '/media/user/' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
30 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
31 |
# Absolute path to the directory that holds static files. |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
32 |
# Example: "/home/static-files/static-files.lawrence.com/" |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
33 |
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static') |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
34 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
35 |
# URL that handles the static files served from MEDIA_ROOT. Make sure to use a |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
36 |
# trailing slash if there is a path component (optional in other cases). |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
37 |
# Examples: "http://static-files.lawrence.com", "http://example.com/static-files/" |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
38 |
STATIC_URL = '/' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
39 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
40 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
41 |
# trailing slash. |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
42 |
# Examples: "http://foo.com/media/", "/media/". |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
43 |
ADMIN_MEDIA_PREFIX = '/admin_media/' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
44 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
45 |
# Don't share this with anybody. |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
46 |
SECRET_KEY = 'o)l1m*xi4%7*2dkbwcou2vc48vo8v48y3obyou3hb3bh$t25zd' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
47 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
48 |
MIDDLEWARE_CLASSES = ( |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
49 |
'django.middleware.common.CommonMiddleware', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
50 |
'django.contrib.sessions.middleware.SessionMiddleware', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
51 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
52 |
'django.middleware.doc.XViewMiddleware', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
53 |
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
54 |
) |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
55 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
56 |
ROOT_URLCONF = 'project.urls' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
57 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
58 |
TEMPLATE_LOADERS = ( |
150
9e0d3287d753
Changed the template loader names to be compliant with upcoming Django changes in 1.2.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
147
diff
changeset
|
59 |
'django.template.loaders.filesystem.Loader', |
9e0d3287d753
Changed the template loader names to be compliant with upcoming Django changes in 1.2.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
147
diff
changeset
|
60 |
'django.template.loaders.app_directories.Loader', |
1
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
61 |
) |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
62 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
63 |
TEMPLATE_DIRS = ( |
147
c085ceb4652a
Made some style changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
131
diff
changeset
|
64 |
os.path.join(os.path.dirname(__file__), 'templates'), |
1
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
65 |
) |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
66 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
67 |
AUTH_PROFILE_MODULE = 'user.UserProfile' |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
68 |
|
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
69 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
70 |
'django.core.context_processors.auth', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
71 |
'django.core.context_processors.debug', |
fda1c66b25f9
Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
72 |
'django.core.context_processors.i18n', |
96
178b89a3ca4f
Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
94
diff
changeset
|
73 |
'django.core.context_processors.media') |
22
2294c71a61ea
Made final changes to the mail to be sent.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
1
diff
changeset
|
74 |
|
36
a658305c5fa5
Corrected admin@scipy.in ID.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
75 |
DEFAULT_FROM_EMAIL = 'admin@scipy.in' |
23
3cb3f853a193
Moved ACCOUNT_ACTIVATION_DAYS to settings.py and added name as a template variable.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
22
diff
changeset
|
76 |
|
107
d8083b07989d
Set the current program scope as a settings variable.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
77 |
CURRENT_SCOPE = 'scipyin/2010' |
131
bf9cc0961c31
Modifed the LOGIN_URL variable for new scope based system.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
107
diff
changeset
|
78 |
|
147
c085ceb4652a
Made some style changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
131
diff
changeset
|
79 |
LOGIN_URL = '/%s/login' % (CURRENT_SCOPE) |