-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.py
51 lines (39 loc) · 1.23 KB
/
configuration.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
## Base Settings
class Config(object):
HOST_NAME = "app.bikeandwalk.org"
DEBUG = False
TESTING = False
SECRET_KEY = "somereallylongstringtouseasakey"
REQUIRE_SSL = False
# work around for some web servers setting wrong path
CGI_ROOT_FIX_APPLY = False
CGI_ROOT_FIX_PATH = "/"
DATABASE = "bikeandwalk.sqlite"
DATABASE_PATH_PREFIX = '/Users/bleddy/Sites/app.bikeandwalk.org/'
DATABASE_URI = 'sqlite:///' + DATABASE_PATH_PREFIX + DATABASE
# set session expiration in seconds
PERMANENT_SESSION_LIFETIME = 60*20
# Email Sending...
## Flask_Mail defaults
MAIL_SERVER = 'localhost'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_DEFAULT_SENDER = None
MAIL_MAX_EMAILS = None
MAIL_SUPPRESS_SEND = False
MAIL_ASCII_ATTACHMENTS = False
# Uploads ...
MAX_CONTENT_LENGTH = 300000
MAPBOX_PROJECT_ID = ""
MAPBOX_ACCESS_TOKEN = ""
LOCATION_DEFAULT_LNG = -121.74439430236818
LOCATION_DEFAULT_LAT = 38.54422161206573
class ProductionConfig(Config):
pass
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
TESTING = True