first working flask prototype

This commit is contained in:
2022-07-16 14:09:27 +02:00
parent 16bea0bd22
commit 499c916e3f
7 changed files with 227 additions and 0 deletions

18
beertap/__init__.py Normal file
View 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