mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-07 09:16:21 -06:00
Change all relative imports to standard imports
This commit is contained in:
8
app.py
8
app.py
@@ -33,19 +33,19 @@ def create_app():
|
||||
login_manager.login_view = 'auth.login'
|
||||
login_manager.init_app(app)
|
||||
|
||||
from .models import User, Post, Comment
|
||||
from models import User, Post, Comment
|
||||
|
||||
@login_manager.user_loader
|
||||
def load_user(user_id):
|
||||
return User.query.get(int(user_id))
|
||||
|
||||
from .auth import blueprint as auth_blueprint
|
||||
from auth import blueprint as auth_blueprint
|
||||
app.register_blueprint(auth_blueprint)
|
||||
|
||||
from .routes import blueprint as routes_blueprint
|
||||
from routes import blueprint as routes_blueprint
|
||||
app.register_blueprint(routes_blueprint)
|
||||
|
||||
from .forms import blueprint as forms_blueprint
|
||||
from forms import blueprint as forms_blueprint
|
||||
app.register_blueprint(forms_blueprint)
|
||||
|
||||
@app.errorhandler(404)
|
||||
|
||||
Reference in New Issue
Block a user