comparison examples/project/settings.py @ 6:8d0793b2358b

update testapp to django 1.0b1
author Victor Ng <victor@monkeybean.ca>
date Thu, 28 Aug 2008 11:44:53 -0400
parents 22ae9aa457af
children a82369f2574e
comparison
equal deleted inserted replaced
5:22ae9aa457af 6:8d0793b2358b
1 # Django settings for dtt project. 1 # Django settings for p1 project.
2 2
3 DEBUG = True 3 DEBUG = True
4 TEMPLATE_DEBUG = DEBUG 4 TEMPLATE_DEBUG = DEBUG
5 5
6 ADMINS = ( 6 ADMINS = (
9 9
10 MANAGERS = ADMINS 10 MANAGERS = ADMINS
11 11
12 DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. 12 DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
13 DATABASE_NAME = 'zoo.db' # Or path to database file if using sqlite3. 13 DATABASE_NAME = 'zoo.db' # Or path to database file if using sqlite3.
14 #DATABASE_USER = '' # Not used with sqlite3. 14 DATABASE_USER = '' # Not used with sqlite3.
15 #DATABASE_PASSWORD = '' # Not used with sqlite3. 15 DATABASE_PASSWORD = '' # Not used with sqlite3.
16 #DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. 16 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. 17 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
18 18
19 19 # Local time zone for this installation. Choices can be found here:
20 # Local time zone for this installation. All choices can be found here: 20 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
21 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE 21 # although not all choices may be available on all operating systems.
22 # If running in a Windows environment this must be set to the same as your
23 # system time zone.
22 TIME_ZONE = 'America/Chicago' 24 TIME_ZONE = 'America/Chicago'
23 25
24 # Language code for this installation. All choices can be found here: 26 # Language code for this installation. All choices can be found here:
25 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes 27 # http://www.i18nguy.com/unicode/language-identifiers.html
26 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
27 LANGUAGE_CODE = 'en-us' 28 LANGUAGE_CODE = 'en-us'
28 29
29 SITE_ID = 1 30 SITE_ID = 1
31
32 # If you set this to False, Django will make some optimizations so as not
33 # to load the internationalization machinery.
34 USE_I18N = True
30 35
31 # Absolute path to the directory that holds media. 36 # Absolute path to the directory that holds media.
32 # Example: "/home/media/media.lawrence.com/" 37 # Example: "/home/media/media.lawrence.com/"
33 MEDIA_ROOT = '' 38 MEDIA_ROOT = ''
34 39
35 # URL that handles the media served from MEDIA_ROOT. 40 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
36 # Example: "http://media.lawrence.com" 41 # trailing slash if there is a path component (optional in other cases).
42 # Examples: "http://media.lawrence.com", "http://example.com/media/"
37 MEDIA_URL = '' 43 MEDIA_URL = ''
38 44
39 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 45 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
40 # trailing slash. 46 # trailing slash.
41 # Examples: "http://foo.com/media/", "/media/". 47 # Examples: "http://foo.com/media/", "/media/".
42 ADMIN_MEDIA_PREFIX = '/media/' 48 ADMIN_MEDIA_PREFIX = '/media/'
43 49
44 # Make this unique, and don't share it with anybody. 50 # Make this unique, and don't share it with anybody.
45 SECRET_KEY = 'gl6%_ew1u)@)4#^blbji7(25urbdmr82jtov=%i$crckk^t%y@' 51 SECRET_KEY = '3r+%mj&(wg@l2wcq)&g!x^cj2@u28vr=pahbive*#am44-p$u)'
46 52
47 # List of callables that know how to import templates from various sources. 53 # List of callables that know how to import templates from various sources.
48 TEMPLATE_LOADERS = ( 54 TEMPLATE_LOADERS = (
49 'django.template.loaders.filesystem.load_template_source', 55 'django.template.loaders.filesystem.load_template_source',
50 'django.template.loaders.app_directories.load_template_source', 56 'django.template.loaders.app_directories.load_template_source',
56 'django.contrib.sessions.middleware.SessionMiddleware', 62 'django.contrib.sessions.middleware.SessionMiddleware',
57 'django.contrib.auth.middleware.AuthenticationMiddleware', 63 'django.contrib.auth.middleware.AuthenticationMiddleware',
58 'django.middleware.doc.XViewMiddleware', 64 'django.middleware.doc.XViewMiddleware',
59 ) 65 )
60 66
61 ROOT_URLCONF = 'dtt.urls' 67 ROOT_URLCONF = 'p1.urls'
62 68
63 TEMPLATE_DIRS = ( 69 TEMPLATE_DIRS = (
64 # Put strings here, like "/home/html/django_templates". 70 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
65 # Always use forward slashes, even on Windows. 71 # Always use forward slashes, even on Windows.
72 # Don't forget to use absolute paths, not relative paths.
66 ) 73 )
67 74
68 INSTALLED_APPS = ( 75 INSTALLED_APPS = (
76 'django.contrib.admin',
77 'django.contrib.auth',
69 'django.contrib.contenttypes', 78 'django.contrib.contenttypes',
70 'django.contrib.auth',
71 'django.contrib.sessions', 79 'django.contrib.sessions',
72 'django.contrib.sites', 80 'django.contrib.sites',
73 'project.zoo' 81 'project.zoo'
74 ) 82 )