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