Some fixe on Config import
This commit is contained in:
parent
be0c212bd6
commit
ff7d339f9c
@ -16,12 +16,12 @@ def create_all_tables():
|
|||||||
@manager.command
|
@manager.command
|
||||||
def runserver():
|
def runserver():
|
||||||
try:
|
try:
|
||||||
from application import config
|
import config
|
||||||
PORT = config.Config.PORT
|
PORT = config.Development.PORT
|
||||||
HOST = config.Config.HOST
|
HOST = config.Development.HOST
|
||||||
DEBUG = config.Config.DEBUG
|
DEBUG = config.Development.DEBUG
|
||||||
except ImportError:
|
except ImportError:
|
||||||
PORT = 5000
|
PORT = 4000
|
||||||
HOST = '0.0.0.0'
|
HOST = '0.0.0.0'
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user