forked from co-ment/comt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_local_sample.py
84 lines (63 loc) · 2.48 KB
/
settings_local_sample.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
DEBUG = True
TEMPLATE_DEBUG = DEBUG
CLIENT_DEBUG = DEBUG
YUI_DEBUG = DEBUG # use expanded yui version (i.e. not -min)
YUI_DISTANT = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backend.<engine>', # YOUR_SETTINGS # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '<db_name>', # YOUR_SETTINGS # Or path to database file if using sqlite3.
'USER': '<db_user>', # YOUR_SETTINGS # Not used with sqlite3.
'PASSWORD': '<db_pw>', # YOUR_SETTINGS # Not used with sqlite3.
'HOST': '<localhost>', # YOUR_SETTINGS # Set to empty string for localhost. Not used with sqlite3.
'PORT': '<5433>', # YOUR_SETTINGS # Set to empty string for default. Not used with sqlite3.
}
}
SITE_URL = "http://127.0.0.1:8000" # YOUR_SETTINGS
DEFAULT_FROM_EMAIL = "[email protected]" # YOUR_SETTINGS
# destination email for the contact page
CONTACT_DEST = DEFAULT_FROM_EMAIL
# smtp host
EMAIL_HOST = "localhost" # YOUR_SETTINGS
TEMPLATE_STRING_IF_INVALID = "NNNNNNNNNOOOOOOOOOOOOOOO" if DEBUG else ''
# web server writable directory to store Comt uploaded content (text images etc.)
MEDIA_ROOT = '/the/path/' # YOUR_SETTINGS
# Insert some random text here,
# it will be used to add some randomness to every crypto operation Comt does
SECRET_KEY = 'random_text_qs57Dd_-dqsdqd' # YOUR_SETTINGS
MEDIA_URL = '/site_media/'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'cm',
# 'django_extensions',
'tagging',
'south',
)
CM_MEDIA_PREFIX = '/cmmedia/'
ADMIN_MEDIA_PREFIX = '/media/'
ADMINS = (
('Comt admin', CONTACT_DEST),
)
MANAGERS = ADMINS
SEND_BROKEN_LINK_EMAILS = False
SERVER_EMAIL = DEFAULT_FROM_EMAIL
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
DEFAULT_TIME_ZONE = "Europe/Paris"
# Do not use name/email of co-ment users but rather
# those passed in the request.
# Set this parameter to True when using co-ment from
# a third-party CMS throuch co-ment API.
DECORATED_CREATORS = False
# Set to TRUE to use Abiword for convertion from and to legacy formats.
# Set to False to use LibreOffice for convertion from and to legacy formats.
USE_ABI = True
# Set to False to avoid appearing in Sopinspace Piwik statistics
TRACKING_ID = False