Some fixe on Config import

This commit is contained in:
gabriel 2015-04-01 10:42:27 -03:00
parent be0c212bd6
commit ff7d339f9c

View File

@ -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