init commit
This commit is contained in:
parent
947db1a737
commit
338a24ad4b
15 changed files with 7761 additions and 0 deletions
15
app/__init__.py
Normal file
15
app/__init__.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from flask import Flask
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
|
||||
load_dotenv() # Load environment variables from .env file
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
|
||||
|
||||
# Register blueprints or routes here
|
||||
from .routes import main
|
||||
app.register_blueprint(main)
|
||||
|
||||
return app
|
||||
Loading…
Add table
Add a link
Reference in a new issue