Tidied up code
This commit is contained in:
parent
2e00d503c8
commit
6d5f74bd62
@ -28,10 +28,10 @@ class Config(object):
|
||||
MAIL_SUPPRESS_SEND = False
|
||||
MAIL_ASCII_ATTACHMENTS = bool(os.getenv('MAIL_ASCII_ATTACHMENTS'))
|
||||
|
||||
class ProductionConfig(Config):
|
||||
class Production(Config):
|
||||
pass
|
||||
|
||||
class DevelopmentConfig(Config):
|
||||
class Development(Config):
|
||||
APP_HOST = '127.0.0.1'
|
||||
DEBUG = True
|
||||
SESSION_COOKIE_SECURE = False
|
||||
@ -39,7 +39,7 @@ class DevelopmentConfig(Config):
|
||||
MAIL_DEBUG = True
|
||||
MAIL_SUPPRESS_SEND = False
|
||||
|
||||
class TestingConfig(DevelopmentConfig):
|
||||
class Testing(Development):
|
||||
TESTING = True
|
||||
SESSION_COOKIE_SECURE = False
|
||||
MAIL_SERVER = os.getenv('MAIL_SERVER')
|
||||
|
@ -1 +1 @@
|
||||
from app.config import ProductionConfig as Config
|
||||
from app.config import Production as Config
|
@ -80,5 +80,4 @@ def create_app():
|
||||
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
if __name__ == '__main__': app.run()
|
@ -1,4 +1,2 @@
|
||||
from main import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
if __name__ == '__main__': app.run()
|
Loading…
Reference in New Issue
Block a user