|
1 import os |
|
2 import sys |
|
3 # Django settings for testappproj project. |
|
4 |
|
5 DEBUG = True |
|
6 TEMPLATE_DEBUG = DEBUG |
|
7 |
|
8 ADMINS = ( |
|
9 # ('Your Name', 'your_email@domain.com'), |
|
10 ) |
|
11 |
|
12 MANAGERS = ADMINS |
|
13 |
|
14 ROOT = os.path.dirname(sys.modules[__name__].__file__) |
|
15 |
|
16 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
17 DATABASE_NAME = '.database.sqlite3' # Or path to database file if using sqlite3. |
|
18 DATABASE_USER = '' # Not used with sqlite3. |
|
19 DATABASE_PASSWORD = '' # Not used with sqlite3. |
|
20 DATABASE_HOST = '' # 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 = 'America/Chicago' |
|
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 # Absolute path to the directory that holds media. |
|
41 # Example: "/home/media/media.lawrence.com/" |
|
42 MEDIA_ROOT = '' |
|
43 |
|
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
45 # trailing slash if there is a path component (optional in other cases). |
|
46 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
47 MEDIA_URL = '' |
|
48 |
|
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
50 # trailing slash. |
|
51 # Examples: "http://foo.com/media/", "/media/". |
|
52 ADMIN_MEDIA_PREFIX = '/media/' |
|
53 |
|
54 # Make this unique, and don't share it with anybody. |
|
55 SECRET_KEY = 's2er59!c4*5-bi5tz)j-#=ngw^p&z8&w-#ft&+sv!_^0m#88pd' |
|
56 |
|
57 # List of callables that know how to import templates from various sources. |
|
58 TEMPLATE_LOADERS = ( |
|
59 'django.template.loaders.filesystem.load_template_source', |
|
60 'django.template.loaders.app_directories.load_template_source', |
|
61 # 'django.template.loaders.eggs.load_template_source', |
|
62 ) |
|
63 |
|
64 MIDDLEWARE_CLASSES = ( |
|
65 'django.middleware.common.CommonMiddleware', |
|
66 'django.contrib.sessions.middleware.SessionMiddleware', |
|
67 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
68 ) |
|
69 |
|
70 |
|
71 # Our own Auth Profile Module so that we can change django registration |
|
72 AUTH_PROFILE_MODULE="testapp.Test_User" |
|
73 |
|
74 #SETTINGS related to registration |
|
75 ACCOUNT_ACTIVATION_DAYS=1 |
|
76 |
|
77 |
|
78 ROOT_URLCONF = 'testappproj.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. |
|
84 os.path.join(ROOT, 'templates') |
|
85 ) |
|
86 |
|
87 INSTALLED_APPS = ( |
|
88 'django.contrib.auth', |
|
89 'django.contrib.contenttypes', |
|
90 'django.contrib.sessions', |
|
91 'django.contrib.sites', |
|
92 'django.contrib.admin', |
|
93 'testappproj.testapp', |
|
94 'registration', |
|
95 ) |