author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 20 Jan 2011 06:31:18 +0530 | |
changeset 493 | 096ba514790b |
parent 471 | 4929cb6a6a9e |
child 502 | 1e5df997eb01 |
permissions | -rwxr-xr-x |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
1 |
# Django settings for pytask project. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
2 |
|
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
3 |
import os |
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
4 |
|
391
f917e7f05499
Move local settings specific stuff out of settings.py to local.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
326
diff
changeset
|
5 |
from pytask.local import * |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
|
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
7 |
|
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
8 |
ADMINS = ( |
391
f917e7f05499
Move local settings specific stuff out of settings.py to local.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
326
diff
changeset
|
9 |
('Madhusudan C.S.', 'madhusudancs@fossee.in'), |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
10 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
11 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
12 |
MANAGERS = ADMINS |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
13 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
14 |
# Local time zone for this installation. Choices can be found here: |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
15 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
16 |
# although not all choices may be available on all operating systems. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
17 |
# On Unix systems, a value of None will cause Django to use the same |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
18 |
# timezone as the operating system. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
19 |
# If running in a Windows environment this must be set to the same as your |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
20 |
# system time zone. |
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
21 |
TIME_ZONE = 'Asia/Kolkata' |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
22 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
23 |
# Language code for this installation. All choices can be found here: |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
24 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
25 |
LANGUAGE_CODE = 'en-us' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
26 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
27 |
# If you set this to False, Django will make some optimizations so as not |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
28 |
# to load the internationalization machinery. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
29 |
USE_I18N = True |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
30 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
31 |
# If you set this to False, Django will not format dates, numbers and |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
32 |
# calendars according to the current locale |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
33 |
USE_L10N = True |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
34 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
35 |
# Absolute filesystem path to the directory that will hold user-uploaded files. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
36 |
# Example: "/home/media/media.lawrence.com/" |
394
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
37 |
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media') |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
38 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
39 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
40 |
# trailing slash if there is a path component (optional in other cases). |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
41 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
394
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
42 |
MEDIA_URL = '/pytask/media/' |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
43 |
|
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
44 |
# Absolute path to the directory that holds static files. |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
45 |
# Example: "/home/static-files/static-files.lawrence.com/" |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
46 |
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static') |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
47 |
|
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
48 |
# URL that handles the static files served from STATIC_ROOT. Make sure to use |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
49 |
# a trailing slash if there is a path component (optional in other cases). |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
50 |
# Examples: "http://static-files.lawrence.com", |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
51 |
# "http://example.com/static-files/" |
5684635eaca3
Added STATIC related variables.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
392
diff
changeset
|
52 |
STATIC_URL = '/pytask/static/' |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
53 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
54 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
55 |
# trailing slash. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
56 |
# Examples: "http://foo.com/media/", "/media/". |
404
c83eba94f643
Change the admin media prefix to suit the server settings.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
402
diff
changeset
|
57 |
ADMIN_MEDIA_PREFIX = '/pytask/admin_media/' |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
58 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
59 |
# Make this unique, and don't share it with anybody. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
60 |
SECRET_KEY = '^ww=xk&idt)=03kqg*fz8x%=dqbhh1kd2z=f%$m@r9_+9b=&x=' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
61 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
62 |
# List of callables that know how to import templates from various sources. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
63 |
TEMPLATE_LOADERS = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
64 |
'django.template.loaders.filesystem.Loader', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
65 |
'django.template.loaders.app_directories.Loader', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
66 |
# 'django.template.loaders.eggs.Loader', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
67 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
68 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
69 |
MIDDLEWARE_CLASSES = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
70 |
'django.middleware.common.CommonMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
71 |
'django.contrib.sessions.middleware.SessionMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
72 |
'django.middleware.csrf.CsrfViewMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
73 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
74 |
'django.contrib.messages.middleware.MessageMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
75 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
76 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
77 |
ROOT_URLCONF = 'pytask.urls' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
78 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
79 |
TEMPLATE_DIRS = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
80 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
81 |
# Always use forward slashes, even on Windows. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
82 |
# Don't forget to use absolute paths, not relative paths. |
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
83 |
os.path.join(os.path.dirname(__file__), 'templates'), |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
84 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
85 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
86 |
INSTALLED_APPS = ( |
471
4929cb6a6a9e
Add django-extensions app to the site INSTALLED_APPS.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
454
diff
changeset
|
87 |
'django_extensions', |
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
88 |
'registration', |
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
89 |
'tagging', |
398
4d063b3716cf
Added south in installed apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
394
diff
changeset
|
90 |
'south', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
91 |
'django.contrib.auth', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
92 |
'django.contrib.contenttypes', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
93 |
'django.contrib.sessions', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
94 |
'django.contrib.sites', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
95 |
'django.contrib.messages', |
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
96 |
'django.contrib.admin', |
424
5ed0362bd674
Add templatetags for form handling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
404
diff
changeset
|
97 |
'pytask', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
98 |
'pytask.profile', |
326
8165274cafa1
eanbled taskapp and registered task model into tagging
Nishanth Amuluru <nishanth@fossee.in>
parents:
309
diff
changeset
|
99 |
'pytask.taskapp', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
100 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
101 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
102 |
AUTH_PROFILE_MODULE = 'profile.Profile' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
103 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
104 |
#django-registration |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
105 |
ACCOUNT_ACTIVATION_DAYS = 7 |
392
2f7d91759bcf
Reorganized settings file to use the current filesystem path than hard coded paths.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
391
diff
changeset
|
106 |
DEFAULT_FROM_EMAIL = 'FOSSEE Admin <admin@fossee.in>' |