hgbook

view web/hgbook/settings.py @ 1114:527b86d55d4a

inotify: update installation information

inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun Dec 13 16:35:56 2009 +0900 (2009-12-13)
parents ad304b606163
children
line source
1 # Django settings for hgbook project.
3 import os, sys
5 DEBUG = False
6 TEMPLATE_DEBUG = DEBUG
8 ADMINS = (
9 ("Bryan O'Sullivan", 'bos@localhost'),
10 )
12 MANAGERS = ADMINS
14 ROOT = os.path.dirname(sys.modules[__name__].__file__)
16 try:
17 from secrets import DATABASE_ENGINE, DATABASE_NAME, DATABASE_USER, \
18 DATABASE_PASSWORD, DATABASE_HOST, DATABASE_PORT, SECRET_KEY
19 except ImportError:
20 print >> sys.stderr, 'Faking up some database configuration for you'
21 DATABASE_ENGINE = 'sqlite3'
22 DATABASE_NAME = os.path.join(ROOT, '.database.sqlite3')
23 DATABASE_USER = ''
24 DATABASE_PASSWORD = ''
25 DATABASE_HOST = ''
26 DATABASE_PORT = ''
27 SECRET_KEY = ''
29 # Local time zone for this installation. Choices can be found here:
30 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
31 # although not all choices may be avilable on all operating systems.
32 # If running in a Windows environment this must be set to the same as your
33 # system time zone.
34 TIME_ZONE = 'America/Los_Angeles'
36 # Language code for this installation. All choices can be found here:
37 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
38 LANGUAGE_CODE = 'en-us'
40 SITE_ID = 1
42 # If you set this to False, Django will make some optimizations so as not
43 # to load the internationalization machinery.
44 USE_I18N = True
46 # Absolute path to the directory that holds media.
47 # Example: "/home/media/media.lawrence.com/"
48 MEDIA_ROOT = ''
50 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
51 # trailing slash if there is a path component (optional in other cases).
52 # Examples: "http://media.lawrence.com", "http://example.com/media/"
53 MEDIA_URL = ''
55 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
56 # trailing slash.
57 # Examples: "http://foo.com/media/", "/media/".
58 ADMIN_MEDIA_PREFIX = '/media/'
60 # List of callables that know how to import templates from various sources.
61 TEMPLATE_LOADERS = (
62 'django.template.loaders.filesystem.load_template_source',
63 'django.template.loaders.app_directories.load_template_source',
64 # 'django.template.loaders.eggs.load_template_source',
65 )
67 MIDDLEWARE_CLASSES = (
68 'django.middleware.common.CommonMiddleware',
69 'django.contrib.sessions.middleware.SessionMiddleware',
70 'django.contrib.auth.middleware.AuthenticationMiddleware',
71 'django.middleware.doc.XViewMiddleware',
72 )
74 ROOT_URLCONF = 'hgbook.urls'
76 TEMPLATE_DIRS = (
77 os.path.join(ROOT, 'templates')
78 )
80 INSTALLED_APPS = (
81 'django.contrib.admin',
82 'django.contrib.auth',
83 'django.contrib.contenttypes',
84 'django.contrib.sessions',
85 'django.contrib.sites',
86 'hgbook.comments',
87 )