author | Nishanth Amuluru <nishanth@fossee.in> |
Fri, 07 Jan 2011 11:07:21 +0530 | |
changeset 26 | 8c2376baee94 |
parent 23 | d736049a518f |
child 30 | f501fc2a9f4c |
permissions | -rwxr-xr-x |
0 | 1 |
# Django settings for pytask project. |
2 |
||
3 |
DEBUG = True |
|
4 |
TEMPLATE_DEBUG = DEBUG |
|
5 |
||
6 |
ADMINS = ( |
|
7 |
# ('Your Name', 'your_email@domain.com'), |
|
8 |
) |
|
9 |
||
10 |
MANAGERS = ADMINS |
|
11 |
||
12 |
DATABASES = { |
|
13 |
'default': { |
|
1
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
14 |
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
15 |
'NAME': './pytask', # Or path to database file if using sqlite3. |
0 | 16 |
'USER': '', # Not used with sqlite3. |
17 |
'PASSWORD': '', # Not used with sqlite3. |
|
18 |
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
|
19 |
'PORT': '', # Set to empty string for default. Not used with sqlite3. |
|
20 |
} |
|
21 |
} |
|
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 |
# On Unix systems, a value of None will cause Django to use the same |
|
27 |
# timezone as the operating system. |
|
28 |
# If running in a Windows environment this must be set to the same as your |
|
29 |
# system time zone. |
|
30 |
TIME_ZONE = 'America/Chicago' |
|
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 |
# If you set this to False, Django will not format dates, numbers and |
|
43 |
# calendars according to the current locale |
|
44 |
USE_L10N = True |
|
45 |
||
46 |
# Absolute filesystem path to the directory that will hold user-uploaded files. |
|
47 |
# Example: "/home/media/media.lawrence.com/" |
|
1
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
48 |
MEDIA_ROOT = './media/' |
0 | 49 |
|
50 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
51 |
# trailing slash if there is a path component (optional in other cases). |
|
52 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
1
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
53 |
MEDIA_URL = '/media/' |
0 | 54 |
|
55 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
56 |
# trailing slash. |
|
57 |
# Examples: "http://foo.com/media/", "/media/". |
|
58 |
ADMIN_MEDIA_PREFIX = '/media/' |
|
59 |
||
60 |
# Make this unique, and don't share it with anybody. |
|
61 |
SECRET_KEY = '^ww=xk&idt)=03kqg*fz8x%=dqbhh1kd2z=f%$m@r9_+9b=&x=' |
|
62 |
||
63 |
# List of callables that know how to import templates from various sources. |
|
64 |
TEMPLATE_LOADERS = ( |
|
65 |
'django.template.loaders.filesystem.Loader', |
|
66 |
'django.template.loaders.app_directories.Loader', |
|
67 |
# 'django.template.loaders.eggs.Loader', |
|
68 |
) |
|
69 |
||
70 |
MIDDLEWARE_CLASSES = ( |
|
71 |
'django.middleware.common.CommonMiddleware', |
|
72 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
73 |
'django.middleware.csrf.CsrfViewMiddleware', |
|
74 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
75 |
'django.contrib.messages.middleware.MessageMiddleware', |
|
76 |
) |
|
77 |
||
78 |
ROOT_URLCONF = 'pytask.urls' |
|
79 |
||
80 |
TEMPLATE_DIRS = ( |
|
81 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|
82 |
# Always use forward slashes, even on Windows. |
|
83 |
# Don't forget to use absolute paths, not relative paths. |
|
1
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
84 |
'./templates', |
0 | 85 |
) |
86 |
||
87 |
INSTALLED_APPS = ( |
|
88 |
'django.contrib.auth', |
|
89 |
'django.contrib.contenttypes', |
|
90 |
'django.contrib.sessions', |
|
91 |
'django.contrib.sites', |
|
92 |
'django.contrib.messages', |
|
1
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
93 |
'registration', |
29ea3d4764c8
Updated the settings file
Nishanth Amuluru <nishanth@fossee.in>
parents:
0
diff
changeset
|
94 |
'tagging', |
6 | 95 |
'pytask.profile', |
0 | 96 |
# Uncomment the next line to enable the admin: |
97 |
# 'django.contrib.admin', |
|
98 |
# Uncomment the next line to enable admin documentation: |
|
99 |
# 'django.contrib.admindocs', |
|
100 |
) |
|
7
9e963a791df1
Added profile module to settings
Nishanth Amuluru <nishanth@fossee.in>
parents:
6
diff
changeset
|
101 |
|
9e963a791df1
Added profile module to settings
Nishanth Amuluru <nishanth@fossee.in>
parents:
6
diff
changeset
|
102 |
AUTH_PROFILE_MODULE = 'profile.Profile' |
22
8b891483e052
fixed a typo and set the settings required for django registration
Nishanth Amuluru <nishanth@fossee.in>
parents:
7
diff
changeset
|
103 |
|
8b891483e052
fixed a typo and set the settings required for django registration
Nishanth Amuluru <nishanth@fossee.in>
parents:
7
diff
changeset
|
104 |
#django-registration |
8b891483e052
fixed a typo and set the settings required for django registration
Nishanth Amuluru <nishanth@fossee.in>
parents:
7
diff
changeset
|
105 |
ACCOUNT_ACTIVATION_DAYS = 7 |
8b891483e052
fixed a typo and set the settings required for django registration
Nishanth Amuluru <nishanth@fossee.in>
parents:
7
diff
changeset
|
106 |
DEFAULT_FROM_EMAIL = 'Admin <admin@fossee.in>' |