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

Revision 32823, 4.5 kB (checked in by everes, 6 years ago)

iPhoneで見やすくした。

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
17
18DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
19DATABASE_NAME = 'tsuyukimakoto'             # Or path to database file if using sqlite3.
20DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
21DATABASE_NAME = 'test.data'             # Or path to database file if using sqlite3.
22DATABASE_USER = 'tsuyukimakoto'             # Not used with sqlite3.
23DATABASE_PASSWORD = 'tsuyukimakoto'         # Not used with sqlite3.
24DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
25DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
26
27# Local time zone for this installation. Choices can be found here:
28# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
29# although not all choices may be available on all operating systems.
30# If running in a Windows environment this must be set to the same as your
31# system time zone.
32TIME_ZONE = 'Japan'
33
34# Language code for this installation. All choices can be found here:
35# http://www.i18nguy.com/unicode/language-identifiers.html
36LANGUAGE_CODE = 'ja'
37
38SITE_ID = 1
39
40# If you set this to False, Django will make some optimizations so as not
41# to load the internationalization machinery.
42USE_I18N = True
43
44# Absolute path to the directory that holds media.
45# Example: "/home/media/media.lawrence.com/"
46MEDIA_ROOT = os.path.join(BASE_DIR, 'everes_theme_default/templates/static/')
47
48# URL that handles the media served from MEDIA_ROOT. Make sure to use a
49# trailing slash if there is a path component (optional in other cases).
50# Examples: "http://media.lawrence.com", "http://example.com/media/"
51MEDIA_URL = '/static/'
52
53# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
54# trailing slash.
55# Examples: "http://foo.com/media/", "/media/".
56ADMIN_MEDIA_PREFIX = '/media/'
57
58# Make this unique, and don't share it with anybody.
59SECRET_KEY = '7(akr)kbm!7(+994q+kv2gh+9&5q%c5m%*0&#6!lhct*1n_(!w'
60
61# List of callables that know how to import templates from various sources.
62TEMPLATE_LOADERS = (
63    'django.template.loaders.filesystem.load_template_source',
64    'django.template.loaders.app_directories.load_template_source',
65#     'django.template.loaders.eggs.load_template_source',
66)
67
68MIDDLEWARE_CLASSES = (
69    'django.middleware.common.CommonMiddleware',
70    'django.contrib.sessions.middleware.SessionMiddleware',
71    'django.contrib.auth.middleware.AuthenticationMiddleware',
72    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
73    #'everes_core.utils.DBDebugMiddleware',
74)
75
76ROOT_URLCONF = 'every_resources.urls'
77
78TEMPLATE_DIRS = (
79    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
80    # Always use forward slashes, even on Windows.
81    # Don't forget to use absolute paths, not relative paths.
82)
83
84INSTALLED_APPS = (
85    'django.contrib.auth',
86    'django.contrib.contenttypes',
87    'django.contrib.sessions',
88    'django.contrib.sites',
89    'django.contrib.admin',
90    'django.contrib.markup',
91    'django.contrib.flatpages',
92    'django.contrib.admindocs',
93    'everes_core',
94    'everes_functional_workflow',
95    'everes_functional_feed',
96    'everes_blog',
97    'everes_event',
98    'everes_diigo',
99    'everes_magnolia',
100    'everes_photo',
101    'everes_project',
102    'everes_note',
103    'everes_release',
104    'everes_theme_default',
105)
106
107AUTH_PROFILE_MODULE = 'everes_core.cmsUserprofile'
108
109TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
110    'everes_core.context_processors.site',
111    'everes_core.context_processors.api_keys',
112    'everes_core.context_processors.everes_apps',
113    'everes_core.context_processors.everes_tags',
114    'everes_core.context_processors.everes_days',
115    'everes_core.context_processors.everes_root_template',
116)
117
118GOOGLE_API_KEY = 'ABQIAAAAqqFWuvyrfIOifreBS0pD6BQCULP4XOMyhPd8d_NrQQEO8sT8XBTc4moQjlQsvb09T-mbSfECKD_dzQ'
119GOOGLE_ANALYTICS = None
120GOOGLE_SEARCH    = None
121GOOGLE_ADSENSE   = None
122GOOGLE_AD_SLOT   = None
123
124RESTRUCTUREDTEXT_FILTER_SETTINGS = {
125    'doctitle_xform': False,
126}
127
128PAGENT_BY = 10
129
130USE_WORKFLOW = 'everes_functional_workflow' in INSTALLED_APPS or False
131# minutes that limit user feedback.
132FEEDBACK_UUID_TIMEOUT = 5
133
134#### photo settings ####
135ADDITIONAL_IMAGES = (('thumb', (128,128)), ('listing', (320, 80)), )
136
Note: See TracBrowser for help on using the browser.