author | nishanth |
Mon, 01 Mar 2010 12:44:27 +0530 | |
changeset 162 | d378eff02f2e |
parent 62 | db103856505e |
child 197 | 3b28b1f9bf06 |
permissions | -rw-r--r-- |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
1 |
# Django settings for pytask project. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
2 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
3 |
DEBUG = True |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
4 |
TEMPLATE_DEBUG = DEBUG |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
5 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
ADMINS = ( |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
7 |
# ('Your Name', 'your_email@domain.com'), |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
8 |
) |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
9 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
10 |
MANAGERS = ADMINS |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
11 |
|
1
7818992cbf83
Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents:
0
diff
changeset
|
12 |
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
29
8baf12083a1e
added *.db to hgignore and made database path to pytask.db in settings.py
nishanth
parents:
12
diff
changeset
|
13 |
DATABASE_NAME = 'pytask.db' # Or path to database file if using sqlite3. |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
14 |
DATABASE_USER = '' # Not used with sqlite3. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
15 |
DATABASE_PASSWORD = '' # Not used with sqlite3. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
16 |
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
17 |
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
18 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
19 |
# Local time zone for this installation. Choices can be found here: |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
20 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
21 |
# although not all choices may be available on all operating systems. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
22 |
# If running in a Windows environment this must be set to the same as your |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
23 |
# system time zone. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
24 |
TIME_ZONE = 'America/Chicago' |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
25 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
26 |
# Language code for this installation. All choices can be found here: |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
27 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
28 |
LANGUAGE_CODE = 'en-us' |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
29 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
30 |
SITE_ID = 1 |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
31 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
32 |
# If you set this to False, Django will make some optimizations so as not |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
33 |
# to load the internationalization machinery. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
34 |
USE_I18N = True |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
35 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
36 |
# Absolute path to the directory that holds media. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
37 |
# Example: "/home/media/media.lawrence.com/" |
62 | 38 |
MEDIA_ROOT = './images/' |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
39 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
40 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
41 |
# trailing slash if there is a path component (optional in other cases). |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
42 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
62 | 43 |
MEDIA_URL = 'http://localhost:8000/images/' |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
44 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
45 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
46 |
# trailing slash. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
47 |
# Examples: "http://foo.com/media/", "/media/". |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
48 |
ADMIN_MEDIA_PREFIX = '/media/' |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
49 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
50 |
# Make this unique, and don't share it with anybody. |
10
bf0cbea1bd12
removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents:
3
diff
changeset
|
51 |
SECRET_KEY = '#7bo8^p1gc=$85gv09z5d_d9-8xk1p=me7_c^3ito@jjth6^^w' |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
52 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
53 |
# List of callables that know how to import templates from various sources. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
54 |
TEMPLATE_LOADERS = ( |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
55 |
'django.template.loaders.filesystem.load_template_source', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
56 |
'django.template.loaders.app_directories.load_template_source', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
57 |
# 'django.template.loaders.eggs.load_template_source', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
58 |
) |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
59 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
60 |
MIDDLEWARE_CLASSES = ( |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
61 |
'django.middleware.common.CommonMiddleware', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
62 |
'django.contrib.sessions.middleware.SessionMiddleware', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
63 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
64 |
) |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
65 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
66 |
ROOT_URLCONF = 'pytask.urls' |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
67 |
|
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
68 |
TEMPLATE_DIRS = ( |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
69 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
70 |
# Always use forward slashes, even on Windows. |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
71 |
# Don't forget to use absolute paths, not relative paths. |
10
bf0cbea1bd12
removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents:
3
diff
changeset
|
72 |
'./templates', |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
73 |
) |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
74 |
|
42
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
29
diff
changeset
|
75 |
ACCOUNT_ACTIVATION_DAYS = 5 |
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
29
diff
changeset
|
76 |
|
47
4e059a4220cc
user should enter unique email address, changed login_redirect_url.
anoop
parents:
42
diff
changeset
|
77 |
LOGIN_REDIRECT_URL = '/' |
48 | 78 |
FORCE_LOWERCASE_TAGS = True |
47
4e059a4220cc
user should enter unique email address, changed login_redirect_url.
anoop
parents:
42
diff
changeset
|
79 |
|
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
80 |
INSTALLED_APPS = ( |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
81 |
'django.contrib.auth', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
82 |
'django.contrib.contenttypes', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
83 |
'django.contrib.sessions', |
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
84 |
'django.contrib.sites', |
1
7818992cbf83
Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents:
0
diff
changeset
|
85 |
'django.contrib.admin', |
7818992cbf83
Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents:
0
diff
changeset
|
86 |
'pytask.taskapp', |
42
9b5b8c997598
started using django-registration default backend, removed browse users functionality.
anoop
parents:
29
diff
changeset
|
87 |
'registration', |
48 | 88 |
'tagging' |
0
a87d642f1ba5
Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
89 |
) |
10
bf0cbea1bd12
removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents:
3
diff
changeset
|
90 |
|
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
10
diff
changeset
|
91 |
AUTH_PROFILE_MODULE = 'taskapp.Profile' |