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