-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
39 lines (33 loc) · 1.1 KB
/
config.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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = '1234567890123456789012345678901234567890'
UPLOADS_DEFAULT_DEST = basedir + '/app/static'
FLASKY_ADMIN = '13167288970'
SERVER_NAME = '192.168.0.147:5000'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:19920720@127.0.0.1/smart'
DEBUG = True
if not os.path.exists(UPLOADS_DEFAULT_DEST):
os.mkdir(UPLOADS_DEFAULT_DEST)
@staticmethod
def init_app(app):
pass
class Release:
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = '\xc3m\x0e\xae\x1c\xcbs\x06pF\xa8\xe1\x84o\xaf\xe90\x00R=j\xce\x93&'
UPLOADS_DEFAULT_DEST = basedir + '/app/static'
FLASKY_ADMIN = '13167288970'
SERVER_NAME = 'm.antporters.com'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:lYp926233@127.0.0.1/share'
DEBUG = False
TESTING = False
if not os.path.exists(UPLOADS_DEFAULT_DEST):
os.mkdir(UPLOADS_DEFAULT_DEST)
@staticmethod
def init_app(app):
pass
config = {
'default': Config,
'release': Release
}