first working flask prototype
This commit is contained in:
18
beertap/__init__.py
Normal file
18
beertap/__init__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import os
|
||||
|
||||
from flask import Flask
|
||||
|
||||
flask_app_secret = os.environ.get('APP_SECRET', 'changeme')
|
||||
|
||||
def create_app():
|
||||
'''
|
||||
configure the flask app
|
||||
'''
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = flask_app_secret
|
||||
|
||||
from .views import views
|
||||
|
||||
app.register_blueprint(views, url_prefix='/')
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user