author | Madhusudan.C.S <madhusudancs@gmail.com> |
Tue, 01 Feb 2011 15:03:24 +0530 | |
changeset 547 | 1bfa67f465b4 |
parent 539 | 59e032315ab9 |
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 |
|
502
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
62 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
63 |
'django.contrib.auth.context_processors.auth', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
64 |
'django.core.context_processors.debug', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
65 |
'django.core.context_processors.i18n', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
66 |
'django.core.context_processors.media', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
67 |
'django.contrib.messages.context_processors.messages', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
68 |
'pytask.taskapp.context_processors.configuration', |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
69 |
) |
1e5df997eb01
Add a project specific configuration file, and create a template context processor to tell if tasks claim are enabled or not.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
471
diff
changeset
|
70 |
|
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
71 |
# 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
|
72 |
TEMPLATE_LOADERS = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
73 |
'django.template.loaders.filesystem.Loader', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
74 |
'django.template.loaders.app_directories.Loader', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
75 |
# 'django.template.loaders.eggs.Loader', |
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 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
78 |
MIDDLEWARE_CLASSES = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
79 |
'django.middleware.common.CommonMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
80 |
'django.contrib.sessions.middleware.SessionMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
81 |
'django.middleware.csrf.CsrfViewMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
82 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
83 |
'django.contrib.messages.middleware.MessageMiddleware', |
539
59e032315ab9
Add exception middleware and related files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
502
diff
changeset
|
84 |
'pytask.middleware.exceptions.ExceptionMiddleware', |
307
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 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
87 |
ROOT_URLCONF = 'pytask.urls' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
88 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
89 |
TEMPLATE_DIRS = ( |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
90 |
# 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
|
91 |
# Always use forward slashes, even on Windows. |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
92 |
# 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
|
93 |
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
|
94 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
95 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
96 |
INSTALLED_APPS = ( |
471
4929cb6a6a9e
Add django-extensions app to the site INSTALLED_APPS.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
454
diff
changeset
|
97 |
'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
|
98 |
'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
|
99 |
'tagging', |
398
4d063b3716cf
Added south in installed apps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
394
diff
changeset
|
100 |
'south', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
101 |
'django.contrib.auth', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
102 |
'django.contrib.contenttypes', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
103 |
'django.contrib.sessions', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
104 |
'django.contrib.sites', |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
105 |
'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
|
106 |
'django.contrib.admin', |
424
5ed0362bd674
Add templatetags for form handling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
404
diff
changeset
|
107 |
'pytask', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
108 |
'pytask.profile', |
326
8165274cafa1
eanbled taskapp and registered task model into tagging
Nishanth Amuluru <nishanth@fossee.in>
parents:
309
diff
changeset
|
109 |
'pytask.taskapp', |
307
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
110 |
) |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
111 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
112 |
AUTH_PROFILE_MODULE = 'profile.Profile' |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
113 |
|
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
114 |
#django-registration |
c6bca38c1cbf
Added buildout stuff and made changes accordingly
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
115 |
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
|
116 |
DEFAULT_FROM_EMAIL = 'FOSSEE Admin <admin@fossee.in>' |