forked from level09/enferno
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.py
56 lines (43 loc) · 1.43 KB
/
settings.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
# -*- coding: utf-8 -*-
import os
os_env = os.environ
class Config(object):
SECRET_KEY = '3nF3Rn0'
APP_DIR = os.path.abspath(os.path.dirname(__file__)) # This directory
PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
ASSETS_DEBUG = False
DEBUG_TB_ENABLED = False # Disable Debug toolbar
DEBUG_TB_INTERCEPT_REDIRECTS = False
CACHE_TYPE = 'simple' # Can be "memcached", "redis", etc.
BROKER_URL = 'redis://localhost:6379/10'
MONGODB_SETTINGS = {
'DB': 'enferno'
}
#security
SECURITY_REGISTERABLE = True
SECURITY_RECOVERABLE = True
SECURITY_CONFIRMABLE = False
SECURITY_TRACKABLE = True
SECURITY_PASSWORD_HASH = 'bcrypt'
SECURITY_PASSWORD_SALT = '3nF3Rn0'
SECURITY_POST_LOGIN_VIEW = '/account'
SECURITY_POST_CONFIRM_VIEW = '/account'
#flask mail settings - Mailgun
MAIL_SERVER = 'smtp.mailgun.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = 'user'
MAIL_PASSWORD = 'pass'
SECURITY_EMAIL_SENDER = 'info@level09.com'
class ProdConfig(Config):
"""Production configuration."""
ENV = 'prod'
DEBUG = False
DEBUG_TB_ENABLED = False # Disable Debug toolbar
class DevConfig(Config):
"""Development configuration."""
ENV = 'dev'
DEBUG = True
DEBUG_TB_ENABLED = True
ASSETS_DEBUG = True # Don't bundle/minify static assets
CACHE_TYPE = 'simple' # Can be "memcached", "redis", etc.