root/lang/python/every_resources/trunk/settings.py @ 26819

Revision 26819, 3.7 kB (checked in by everes, 5 years ago)

一応CMS(作り途中)

Line 
1# Django settings for every_resources project.
2from django.conf import global_settings
3
4DEBUG = True
5TEMPLATE_DEBUG = DEBUG
6
7ADMINS = (
8    # ('Your Name', 'your_email@domain.com'),
9)
10
11MANAGERS = ADMINS
12
13import os
14
15BASE_DIR = os.path.dirname(__file__)
16
17DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
18DATABASE_NAME = 'test.data'             # Or path to database file if using sqlite3.
19DATABASE_USER = ''             # Not used with sqlite3.
20DATABASE_PASSWORD = ''         # Not used with sqlite3.
21DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
22DATABASE_PORT = ''             # Set to empty string for default. Not used with 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 = 'Japan'
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 = os.path.join(BASE_DIR, 'everes_theme_default/templates/static/')
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 = '7(akr)kbm!7(+994q+kv2gh+9&5q%c5m%*0&#6!lhct*1n_(!w'
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    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
70)
71
72ROOT_URLCONF = 'every_resources.urls'
73
74TEMPLATE_DIRS = (
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    'django.contrib.admin',
86    'django.contrib.markup',
87    'django.contrib.flatpages',
88    'everes_core',
89    #'everes_workflow',
90    'everes_blog',
91    'everes_event',
92    'everes_photo',
93    'everes_project',
94    'everes_release',
95    'everes_theme_default',
96)
97
98TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
99    'everes_core.context_processors.site',
100    'everes_core.context_processors.everes_apps',
101    'everes_core.context_processors.everes_tags',
102)
103
104RESTRUCTUREDTEXT_FILTER_SETTINGS = {
105    'doctitle_xform': False,
106}
107
108
109
110USE_WORKFLOW = 'everes_workflow' in INSTALLED_APPS or False
111# minutes that limit user feedback.
112FEEDBACK_UUID_TIMEOUT = 5
113
114#### photo settings ####
115ADDITIONAL_IMAGES = (('thumb', (128,128)), ('listing', (320, 80)), )
Note: See TracBrowser for help on using the browser.