root/docs/everes/20090425_django_hands_on_b/sample/hackathon/settings.py @ 32779

Revision 32779, 3.0 kB (checked in by everes, 5 years ago)

これでいいや

Line 
1# Django settings for hackathon project.
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5
6ADMINS = (
7    # ('Your Name', 'your_email@domain.com'),
8)
9
10MANAGERS = ADMINS
11
12DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
13DATABASE_NAME = ''             # Or path to database file if using sqlite3.
14DATABASE_USER = ''             # Not used with sqlite3.
15DATABASE_PASSWORD = ''         # Not used with sqlite3.
16DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
17DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
18
19import os
20BASE_DIR = os.path.dirname(os.path.abspath(__file__))
21DATABASE_ENGINE = 'sqlite3'
22DATABASE_NAME = os.path.join(BASE_DIR, 'data.sqlite3')
23
24# Local time zone for this installation. Choices can be found here:
25# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
26# although not all choices may be available on all operating systems.
27# If running in a Windows environment this must be set to the same as your
28# system time zone.
29TIME_ZONE = 'America/Chicago'
30
31# Language code for this installation. All choices can be found here:
32# http://www.i18nguy.com/unicode/language-identifiers.html
33LANGUAGE_CODE = 'ja'
34
35SITE_ID = 1
36
37# If you set this to False, Django will make some optimizations so as not
38# to load the internationalization machinery.
39USE_I18N = True
40
41# Absolute path to the directory that holds media.
42# Example: "/home/media/media.lawrence.com/"
43MEDIA_ROOT = ''
44
45# URL that handles the media served from MEDIA_ROOT. Make sure to use a
46# trailing slash if there is a path component (optional in other cases).
47# Examples: "http://media.lawrence.com", "http://example.com/media/"
48MEDIA_URL = '/static/'
49
50# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
51# trailing slash.
52# Examples: "http://foo.com/media/", "/media/".
53ADMIN_MEDIA_PREFIX = '/media/'
54
55# Make this unique, and don't share it with anybody.
56SECRET_KEY = '5(47vjz)xjs)wr^zjbx*qd!=j1e193&hqulk))vrgc4u50rive'
57
58# List of callables that know how to import templates from various sources.
59TEMPLATE_LOADERS = (
60    'django.template.loaders.filesystem.load_template_source',
61    'django.template.loaders.app_directories.load_template_source',
62#     'django.template.loaders.eggs.load_template_source',
63)
64
65MIDDLEWARE_CLASSES = (
66    'django.middleware.common.CommonMiddleware',
67    'django.contrib.sessions.middleware.SessionMiddleware',
68    'django.contrib.auth.middleware.AuthenticationMiddleware',
69)
70
71ROOT_URLCONF = 'hackathon.urls'
72
73TEMPLATE_DIRS = (
74    os.path.join(BASE_DIR, 'templates'),
75    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
76    # Always use forward slashes, even on Windows.
77    # Don't forget to use absolute paths, not relative paths.
78)
79
80INSTALLED_APPS = (
81    'django.contrib.auth',
82    'django.contrib.contenttypes',
83    'django.contrib.sessions',
84    'django.contrib.sites',
85    'blog',
86    'tags',
87    'django.contrib.admin',
88)
Note: See TracBrowser for help on using the browser.