From 6dfed98ba37dcfc4aba38dd05e31b727d38540fe Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 28 Mar 2022 17:19:11 -0500 Subject: [PATCH] Rename create_app.py to app.py for Gunicorn command --- .flaskenv | 2 +- Procfile | 2 +- create_app.py => app.py | 0 auth.py | 2 +- forms.py | 2 +- models.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename create_app.py => app.py (100%) diff --git a/.flaskenv b/.flaskenv index a8a923d..95aa9fa 100644 --- a/.flaskenv +++ b/.flaskenv @@ -1 +1 @@ -FLASK_APP=create_app.py +FLASK_APP=app.py diff --git a/Procfile b/Procfile index 6da7788..ca6e941 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn create-app:app +web: gunicorn app:app diff --git a/create_app.py b/app.py similarity index 100% rename from create_app.py rename to app.py diff --git a/auth.py b/auth.py index da266e4..5c82a01 100644 --- a/auth.py +++ b/auth.py @@ -3,7 +3,7 @@ from flask_login import login_required, login_user, logout_user, current_user from werkzeug.security import check_password_hash, generate_password_hash from .models import User -from .create_app import db +from .app import db blueprint = Blueprint('auth', __name__) diff --git a/forms.py b/forms.py index 2de5874..3fce47f 100644 --- a/forms.py +++ b/forms.py @@ -1,7 +1,7 @@ from flask import Blueprint, flash, redirect, request, url_for from flask_login import current_user, login_required -from .create_app import db +from .app import db from .models import User, Post, Comment blueprint = Blueprint('forms', __name__) diff --git a/models.py b/models.py index fff149a..cdae3a2 100644 --- a/models.py +++ b/models.py @@ -6,7 +6,7 @@ import humanize from flask_login import UserMixin from sqlalchemy import func -from .create_app import db +from .app import db MAXIMUM_ONLINE_DELTA = datetime.timedelta(minutes=1)