added beginnings of stripe payment for subscriptions

This commit is contained in:
Oscar Cao
2025-01-19 21:20:12 +00:00
parent c0afafd07b
commit b8624c94a1
13 changed files with 81 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ from flask_session import Session
from core.blueprints.utils import logged_in_user
def create_app():
app = Flask(__name__, template_folder="../../ui/templates/")
app = Flask(__name__, template_folder="../../ui/templates/", static_folder="../../ui/static")
app.config["SECRET_KEY"] = ""
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
@@ -14,8 +14,10 @@ def create_app():
with app.app_context():
from core.blueprints.authentication import auth_bp
from core.blueprints.main import main_bp
from core.blueprints.stripe import stripe_bp
app.register_blueprint(auth_bp)
app.register_blueprint(main_bp)
app.register_blueprint(stripe_bp)
return app