This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_site_settings.confg
129 lines (96 loc) · 3.22 KB
/
default_site_settings.confg
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
## Site Settings
## Changes to this settings file only take effect after restarting the server ###
## ALL CONFIG NAMES MUST BE UPPERCASE! ##
# The basics...
HOST_NAME = 'localhost:5000'
SITE_NAME = "My New Web Site"
DEBUG = True
############################################
### You Must ABSOLUTELY change this key
############################################
SECRET_KEY = "somereallylongstringtouseasakey"
## Email Sending...
MAIL_SERVER = 'localhost'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = ""
MAIL_PASSWORD = ""
MAIL_DEFAULT_SENDER = "Some Name"
MAIL_DEFAULT_ADDR = "admin@example.com"
CONTACT_NAME = MAIL_DEFAULT_SENDER
CONTACT_EMAIL_ADDR = MAIL_DEFAULT_ADDR
CC_ADMIN_ON_CONTACT = True
REPORT_404_ERRORS = DEBUG
# Security Settings
REQUIRE_SSL = (not DEBUG)
# Timezone setting
# This is the Time zone where you think you are,
# in case the server is in a different time zone.
# Un-comment one or add yours
# for full list see pytz.all_timezones
TIME_ZONE = 'US/Pacific'
#TIME_ZONE = 'US/Mountain'
#TIME_ZONE = 'US/Central'
#TIME_ZONE = 'US/Eastern'
# You can change database to another name if you like.
DATABASE_NAME= "database.sqlite"
DATABASE_PATH= 'instance/' + DATABASE_NAME
#############################################
### These settings are probably Ok...
#############################################
CGI_ROOT_FIX_APPLY = True # Some webservers mess up the root url
CGI_ROOT_FIX_PATH = "/" #this is usually correct path
if REQUIRE_SSL:
HOST_PROTOCOL = "https"
else:
HOST_PROTOCOL = "http"
# set session expiration in seconds
PERMANENT_SESSION_LIFETIME = 60*20
# Uploads ...
MAX_CONTENT_LENGTH = 300000
## some administrative settings
ALLOW_USERNAME_CHANGE = True
ALLOW_USER_SIGNUP = True
## Places to look for documentation:
DOC_DIRECTORY_LIST = ['/','docs','shotglass2/','shotglass2/docs/',]
# Where to look for static files.
# Must be a list.
STATIC_DIRS = [
'resource/static',
'static',
'shotglass2/static',
]
## For Debuging
#EXPLAIN_TEMPLATE_LOADING = True
## This list will be PREPENDED to the above static search
#### if you override this is SHARED_HOST_SETTINGS be sure to profide a list:
####. 'local_static_dirs': ['resource/local8000/static']
#LOCAL_STATIC_DIRS = [
# 'resource/localhost/static',
#]
## For Debuging
#EXPLAIN_TEMPLATE_LOADING = True
# Template directories to search FIRST
# Must be a list of app relative paths to search
HOST_TEMPLATE_DIRS = [
'resource'
]
# Template directories to search AFTER HOST_TEMPLATE_DIRS
# Must be a list of app relative paths to search
TEMPLATE_DIRS = [
'templates/www',
'templates/users',
]
# Finally the default Flask search order is uses...
# each blueprint in the order defined then...
# app.template_folder
# A list of dictionaries of settings for sites that share this config and virtualenv
SHARED_HOST_SETTINGS = [
{"host_name": HOST_NAME, "database_path": DATABASE_PATH, "time_zone": TIME_ZONE, "contact_email_addr": CONTACT_EMAIL_ADDR, "contact_name": CONTACT_NAME},
]
#Map Box Settings...
#MAPBOX_PROJECT_ID = ""
#MAPBOX_ACCESS_TOKEN = ""
# Sets the default location when creating a new location pin if geolocation is not available
#LOCATION_DEFAULT_LNG = -121.74439430236818
#LOCATION_DEFAULT_LAT = 38.54422161206573