author | Madhusudan.C.S <madhusudancs@gmail.com> |
Fri, 14 Aug 2009 11:07:24 +0530 | |
changeset 49 | 33c54f815fd5 |
parent 47 | 09c3b7aaa535 |
permissions | -rw-r--r-- |
0 | 1 |
# Django settings for app project. |
2 |
||
3 |
import os |
|
4 |
||
5 |
DEBUG = True |
|
6 |
TEMPLATE_DEBUG = DEBUG |
|
7 |
||
8 |
ADMINS = ( |
|
9 |
('Madhusudan.C.S', 'madhusudancs@gmail.com'), |
|
10 |
) |
|
11 |
||
47
09c3b7aaa535
Full Comments window decoration.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
25
diff
changeset
|
12 |
SESSION_EXPIRE_AT_BROWSER_CLOSE = True |
09c3b7aaa535
Full Comments window decoration.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
25
diff
changeset
|
13 |
|
17 | 14 |
DEFAULT_FROM_EMAIL = 'admin@sakshath.ac.in' |
15 |
||
0 | 16 |
MANAGERS = ADMINS |
17 |
||
18 |
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
19 |
DATABASE_NAME = 'nme_ict' # Or path to database file if using sqlite3. |
|
20 |
DATABASE_USER = 'madhu' # Not used with sqlite3. |
|
21 |
DATABASE_PASSWORD = '' # Not used with sqlite3. |
|
22 |
DATABASE_HOST = 'localhost' # Set to empty string for localhost. Not used with sqlite3. |
|
23 |
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
|
24 |
||
25 |
# Local time zone for this installation. Choices can be found here: |
|
26 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|
27 |
# although not all choices may be available on all operating systems. |
|
28 |
# If running in a Windows environment this must be set to the same as your |
|
29 |
# system time zone. |
|
30 |
TIME_ZONE = 'Asia/Kolkata' |
|
31 |
||
32 |
# Language code for this installation. All choices can be found here: |
|
33 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
|
34 |
LANGUAGE_CODE = 'en-us' |
|
35 |
||
36 |
SITE_ID = 1 |
|
37 |
||
38 |
# If you set this to False, Django will make some optimizations so as not |
|
39 |
# to load the internationalization machinery. |
|
40 |
USE_I18N = True |
|
41 |
||
42 |
ROOT_PATH = os.path.dirname(__file__) |
|
43 |
||
44 |
# Absolute path to the directory that holds media. |
|
45 |
# Example: "/home/media/media.lawrence.com/" |
|
46 |
MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content') |
|
47 |
||
48 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
49 |
# trailing slash if there is a path component (optional in other cases). |
|
50 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
51 |
MEDIA_URL = '/site-content/' |
|
52 |
||
53 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
54 |
# trailing slash. |
|
55 |
# Examples: "http://foo.com/media/", "/media/". |
|
56 |
ADMIN_MEDIA_PREFIX = '/media/' |
|
57 |
||
58 |
# Make this unique, and don't share it with anybody. |
|
59 |
SECRET_KEY = '4akwt2sqybl#+rr^l3hk(c#3dj^$+=3l$88-j-l%uy%)*%l8_m' |
|
60 |
||
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
61 |
# List of context processors. |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
62 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
63 |
'django.core.context_processors.auth', |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
64 |
'django.core.context_processors.debug', |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
65 |
'django.core.context_processors.i18n', |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
66 |
'django.core.context_processors.media' |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
67 |
) |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
68 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
69 |
|
0 | 70 |
# List of callables that know how to import templates from various sources. |
71 |
TEMPLATE_LOADERS = ( |
|
72 |
'django.template.loaders.filesystem.load_template_source', |
|
73 |
'django.template.loaders.app_directories.load_template_source', |
|
74 |
# 'django.template.loaders.eggs.load_template_source', |
|
75 |
) |
|
76 |
||
77 |
MIDDLEWARE_CLASSES = ( |
|
78 |
'django.middleware.common.CommonMiddleware', |
|
79 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
80 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
81 |
) |
|
82 |
||
83 |
ROOT_URLCONF = 'app.urls' |
|
84 |
||
85 |
TEMPLATE_DIRS = ( |
|
86 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|
87 |
# Always use forward slashes, even on Windows. |
|
88 |
# Don't forget to use absolute paths, not relative paths. |
|
89 |
os.path.join(ROOT_PATH, 'templates'), |
|
90 |
) |
|
91 |
||
92 |
INSTALLED_APPS = ( |
|
93 |
'django.contrib.auth', |
|
94 |
'django.contrib.contenttypes', |
|
95 |
'django.contrib.sessions', |
|
96 |
'django.contrib.sites', |
|
97 |
'django.contrib.admin', |
|
98 |
'app.projrev', |
|
25
a6a5e45f68c8
Added support for templatetags.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
17
diff
changeset
|
99 |
'app.projrev.views.helpers', |
0 | 100 |
) |