-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py.default
53 lines (35 loc) · 1.18 KB
/
config.py.default
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""config.py.default: default config file."""
class BaseConfig():
"""Base Flask config variabels."""
DEBUG = False
SECRET_KEY = 'REPLACE WITH VERY SECRET KEY'
SQLALCHEMY_TRACK_MODIFICATIONS = False
ERROR_MAILHOST = ()
ERROR_EMAIL_TO = ''
ERROR_EMAIL_FROM = []
ERROR_EMAIL_CREDENTIALS = ()
MAIL_FROM_DEFAULT = ''
MAIL_FROM_DEFAULT = ''
MAILGUN_DOMAIN = ''
MAILGUN_API_KEY = ''
TWITTER_CUSTOMER_KEY = 'TWITTER_CUSTOMER_KEY'
TWITTER_CUSTOMER_SECRET = 'TWITTER_CUSTOMER_SECRET'
GOOGLE_CLIENT_ID = 'GOOGLE_CLIENT_ID'
GOOGLE_CLIENT_SECRET = 'GOOGLE_CLIENT_SECRET'
class Test(BaseConfig):
"""Test Flask config variabels."""
DEBUG = True
TESTING = True
PRESERVE_CONTEXT_ON_EXCEPTION = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
WTF_CSRF_ENABLED = False
class Development(BaseConfig):
"""Development Flask config variabels."""
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///development.db'
class Production(BaseConfig):
"""Production Flask config variabels."""
DEBUG = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///production.db'