· 10 years ago · Mar 19, 2016, 07:35 AM
1 1 # Django settings for blog project.
2 2
3 3 DEBUG = True
4 4 TEMPLATE_DEBUG = DEBUG
5 5
6 6 ADMINS = (
7 7 # ('Your Name', 'your_email@domain.com'),
8 8 )
9 9
10 10 MANAGERS = ADMINS
11 11
12 12 DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
13 13 DATABASE_NAME = 'django_base.db' # Or path to database file if using sqlite3.
14 14 DATABASE_USER = '' # Not used with sqlite3.
15 15 DATABASE_PASSWORD = '' # Not used with sqlite3.
16 16 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
17 17 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
18 18
19 19 # Local time zone for this installation. All choices can be found here:
20 20 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
21 21 TIME_ZONE = 'America/Chicago'
22 22
23 23 # Language code for this installation. All choices can be found here:
24 24 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
25 25 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
26 26 LANGUAGE_CODE = 'en-us'
27 27
28 28 SITE_ID = 1
29 29
30 30 # Absolute path to the directory that holds media.
31 31 # Example: "/home/media/media.lawrence.com/"
32 32 MEDIA_ROOT = ''
33 33
34 34 # URL that handles the media served from MEDIA_ROOT.
35 35 # Example: "http://media.lawrence.com"
36 36 MEDIA_URL = ''
37 37
38 38 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
39 39 # trailing slash.
40 40 # Examples: "http://foo.com/media/", "/media/".
41 41 ADMIN_MEDIA_PREFIX = '/media/'
42 42
43 43 # Make this unique, and don't share it with anybody.
44 44 SECRET_KEY = '-@)6_wx&#!@^bs09$@o3k_a-8eb^(-j1l#!!@xd=hu4atrz-kn'
45 45
46 46 # List of callables that know how to import templates from various sources.
47 47 TEMPLATE_LOADERS = (
48 48 'django.template.loaders.filesystem.load_template_source',
49 49 'django.template.loaders.app_directories.load_template_source',
50 50 # 'django.template.loaders.eggs.load_template_source',
51 51 )
52 52
53 53 MIDDLEWARE_CLASSES = (
54 54 'django.middleware.common.CommonMiddleware',
55 55 'django.contrib.sessions.middleware.SessionMiddleware',
56 56 'django.contrib.auth.middleware.AuthenticationMiddleware',
57 57 'django.middleware.doc.XViewMiddleware',
58 58 'blog.messages',
59 59 )
60 60
61 61 ROOT_URLCONF = 'blog.urls'
62 62
63 63 TEMPLATE_DIRS = (
64 64 # Put strings here, like "/home/html/django_templates".
65 65 # Always use forward slashes, even on Windows.
66 66 )
67 67
68 68 INSTALLED_APPS = (
69 69 'django.contrib.auth',
70 70 'django.contrib.contenttypes',
71 71 'django.contrib.sessions',
72 72 'django.contrib.sites',
73 73 )
74~