| 1 |
# vim: encoding=utf-8 : |
|---|
| 2 |
|
|---|
| 3 |
import os |
|---|
| 4 |
|
|---|
| 5 |
BASE_PATH = os.path.abspath(os.path.split(__file__)[0]) |
|---|
| 6 |
|
|---|
| 7 |
DEBUG = True |
|---|
| 8 |
TEMPLATE_DEBUG = DEBUG |
|---|
| 9 |
|
|---|
| 10 |
ADMINS = ( |
|---|
| 11 |
# ('Your Name', 'your_email@domain.com'), |
|---|
| 12 |
) |
|---|
| 13 |
|
|---|
| 14 |
MANAGERS = ADMINS |
|---|
| 15 |
|
|---|
| 16 |
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|---|
| 17 |
DATABASE_NAME = '' # Or path to database file if using sqlite3. |
|---|
| 18 |
DATABASE_USER = '' # Not used with sqlite3. |
|---|
| 19 |
DATABASE_PASSWORD = '' # Not used with sqlite3. |
|---|
| 20 |
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
|---|
| 21 |
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
|---|
| 22 |
|
|---|
| 23 |
############ |
|---|
| 24 |
# SESSIONS # |
|---|
| 25 |
############ |
|---|
| 26 |
|
|---|
| 27 |
SESSION_COOKIE_NAME = 'sessionid' |
|---|
| 28 |
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 |
|---|
| 29 |
SESSION_COOKIE_DOMAIN = None |
|---|
| 30 |
SESSION_COOKIE_SECURE = False |
|---|
| 31 |
SESSION_COOKIE_PATH = '/' |
|---|
| 32 |
SESSION_SAVE_EVERY_REQUEST = False |
|---|
| 33 |
SESSION_EXPIRE_AT_BROWSER_CLOSE = True |
|---|
| 34 |
SESSION_ENGINE = 'django.contrib.sessions.backends.db' |
|---|
| 35 |
SESSION_FILE_PATH = '/tmp/' |
|---|
| 36 |
|
|---|
| 37 |
# Local time zone for this installation. Choices can be found here: |
|---|
| 38 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|---|
| 39 |
# although not all choices may be available on all operating systems. |
|---|
| 40 |
# If running in a Windows environment this must be set to the same as your |
|---|
| 41 |
# system time zone. |
|---|
| 42 |
TIME_ZONE = 'Asia/Tokyo' |
|---|
| 43 |
|
|---|
| 44 |
# Language code for this installation. All choices can be found here: |
|---|
| 45 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
|---|
| 46 |
LANGUAGE_CODE = 'ja-JP' |
|---|
| 47 |
|
|---|
| 48 |
SITE_ID = 1 |
|---|
| 49 |
|
|---|
| 50 |
# If you set this to False, Django will make some optimizations so as not |
|---|
| 51 |
# to load the internationalization machinery. |
|---|
| 52 |
USE_I18N = True |
|---|
| 53 |
|
|---|
| 54 |
# Absolute path to the directory that holds media. |
|---|
| 55 |
# Example: "/home/media/media.lawrence.com/" |
|---|
| 56 |
MEDIA_ROOT = os.path.join(BASE_PATH, 'media') |
|---|
| 57 |
|
|---|
| 58 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|---|
| 59 |
# trailing slash if there is a path component (optional in other cases). |
|---|
| 60 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|---|
| 61 |
MEDIA_URL = '/media' |
|---|
| 62 |
|
|---|
| 63 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|---|
| 64 |
# trailing slash. |
|---|
| 65 |
# Examples: "http://foo.com/media/", "/media/". |
|---|
| 66 |
ADMIN_MEDIA_PREFIX = '/admin_media/' |
|---|
| 67 |
|
|---|
| 68 |
# List of callables that know how to import templates from various sources. |
|---|
| 69 |
TEMPLATE_LOADERS = ( |
|---|
| 70 |
'django.template.loaders.filesystem.load_template_source', |
|---|
| 71 |
'django.template.loaders.app_directories.load_template_source', |
|---|
| 72 |
# 'django.template.loaders.eggs.load_template_source', |
|---|
| 73 |
) |
|---|
| 74 |
|
|---|
| 75 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|---|
| 76 |
'django.core.context_processors.auth', |
|---|
| 77 |
'django.core.context_processors.debug', |
|---|
| 78 |
'django.core.context_processors.i18n', |
|---|
| 79 |
'django.core.context_processors.media', |
|---|
| 80 |
'common.context_processors.site', |
|---|
| 81 |
'common.context_processors.path_info', |
|---|
| 82 |
'common.context_processors.theme', |
|---|
| 83 |
) |
|---|
| 84 |
|
|---|
| 85 |
MIDDLEWARE_CLASSES = ( |
|---|
| 86 |
'django.middleware.common.CommonMiddleware', |
|---|
| 87 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|---|
| 88 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|---|
| 89 |
'django.middleware.doc.XViewMiddleware', |
|---|
| 90 |
'common.middleware.FlatpageFallbackMiddleware', |
|---|
| 91 |
) |
|---|
| 92 |
|
|---|
| 93 |
ROOT_URLCONF = 'picolog.urls' |
|---|
| 94 |
|
|---|
| 95 |
TEMPLATE_DIRS = ( |
|---|
| 96 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|---|
| 97 |
# Always use forward slashes, even on Windows. |
|---|
| 98 |
# Don't forget to use absolute paths, not relative paths. |
|---|
| 99 |
) |
|---|
| 100 |
|
|---|
| 101 |
INSTALLED_APPS = ( |
|---|
| 102 |
'django.contrib.auth', |
|---|
| 103 |
'django.contrib.admin', |
|---|
| 104 |
'django.contrib.contenttypes', |
|---|
| 105 |
'django.contrib.sessions', |
|---|
| 106 |
'django.contrib.sites', |
|---|
| 107 |
'common', |
|---|
| 108 |
'markup', |
|---|
| 109 |
'blog', |
|---|
| 110 |
'plugins', |
|---|
| 111 |
) |
|---|
| 112 |
|
|---|
| 113 |
RESTRUCTUREDTEXT_FILTER_SETTINGS = { |
|---|
| 114 |
'doctitle_xform' : False, |
|---|
| 115 |
} |
|---|
| 116 |
|
|---|
| 117 |
DESIGN_THEME = 'default' |
|---|
| 118 |
|
|---|
| 119 |
SUB_CONTENTS = ( |
|---|
| 120 |
'plugins.views.TagCloudContent', |
|---|
| 121 |
'plugins.views.RecentEntriesContent', |
|---|
| 122 |
) |
|---|
| 123 |
EXTRA_CONTENTS = ( |
|---|
| 124 |
'plugins.views.RecentCommentsContent', |
|---|
| 125 |
'plugins.views.ArchiveContent', |
|---|
| 126 |
) |
|---|
| 127 |
|
|---|
| 128 |
from local_settings import * |
|---|