-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings_local.py.template
66 lines (48 loc) · 1.52 KB
/
settings_local.py.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import re
import os
import sys
PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))
# Change it for deploy
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = ['*']
ADMINS = (
# ('your_login', '[email protected]'),
)
MANAGERS = ADMINS
# Local time zone for this installation. All choices can be found here:
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'Europe/Moscow'
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'ru-ru'
SITE_ID = 1
# Django specific settings for xkcd project.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, "xkcd.db")
}
}
SECRET_KEY = 'SECRET_KEY'
# Absolute path to the directory that holds media.
MEDIA_ROOT = os.path.join(PROJECT_ROOT, "media")
FILE_UPLOAD_PERMISSIONS = 0o644
# URL that handles the media served from MEDIA_ROOT.
MEDIA_URL = '/'
TEMPLATE_DIRS = (
# Always use forward slashes, even on Windows.
os.path.join(PROJECT_ROOT, "templates"),
)
#FORCE_SCRIPT_NAME = ''
LJ_LOGIN = ''
LJ_PASSWORD = ''
LJ_JOURNAL = ''
PING_GOOGLE = False
MAILLIST_NAME = '[email protected]'
MAILLIST_HEADER = re.compile(r'xkcd[/\\](\d+)')
MAILLIST_FOOTER = ('--~--~---------~--~----~------------~-------~--~----~',
'-- \n', '-- \r')
MAILLIST_DIR = ''