1 # Django settings for pytask project. |
1 # Django settings for pytask project. |
|
2 |
|
3 import os |
|
4 |
|
5 from pytask.local import DATABASE_PASSWORD |
|
6 from pytask.local import DATABASE_USER |
2 |
7 |
3 DEBUG = True |
8 DEBUG = True |
4 TEMPLATE_DEBUG = DEBUG |
9 TEMPLATE_DEBUG = DEBUG |
5 |
10 |
6 ADMINS = ( |
11 ADMINS = ( |
7 # ('Your Name', 'your_email@domain.com'), |
12 # ('Your Name', 'your_email@domain.com'), |
8 ) |
13 ) |
9 |
14 |
10 MANAGERS = ADMINS |
15 MANAGERS = ADMINS |
11 |
16 |
12 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
17 DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
13 DATABASE_NAME = 'pytask.db' # Or path to database file if using sqlite3. |
18 DATABASE_NAME = 'pytask' # Or path to database file if using sqlite3. |
14 DATABASE_USER = '' # Not used with sqlite3. |
19 |
15 DATABASE_PASSWORD = '' # Not used with sqlite3. |
20 # These variables are set in a file not tracked by revision control systems. |
|
21 #DATABASE_USER = '' # Not used with sqlite3. |
|
22 #DATABASE_PASSWORD = '' # Not used with sqlite3. |
16 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
23 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
17 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
24 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
18 |
25 |
19 # Local time zone for this installation. Choices can be found here: |
26 # Local time zone for this installation. Choices can be found here: |
20 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
27 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
67 |
74 |
68 TEMPLATE_DIRS = ( |
75 TEMPLATE_DIRS = ( |
69 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
76 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
70 # Always use forward slashes, even on Windows. |
77 # Always use forward slashes, even on Windows. |
71 # Don't forget to use absolute paths, not relative paths. |
78 # Don't forget to use absolute paths, not relative paths. |
72 './templates', |
79 os.path.join(os.path.dirname(__file__), 'templates') |
73 ) |
80 ) |
74 |
81 |
75 ACCOUNT_ACTIVATION_DAYS = 5 |
82 ACCOUNT_ACTIVATION_DAYS = 7 |
76 DEFAULT_FROM_EMAIL = 'no-reply@pytask.in' |
83 DEFAULT_FROM_EMAIL = 'info@fossee.in' |
77 |
84 |
78 LOGIN_REDIRECT_URL = '/' |
85 LOGIN_REDIRECT_URL = '/' |
79 FORCE_LOWERCASE_TAGS = True |
86 FORCE_LOWERCASE_TAGS = True |
80 |
87 |
81 INSTALLED_APPS = ( |
88 INSTALLED_APPS = ( |