Split routes to folders

This commit is contained in:
Darks 2019-06-06 02:11:48 +02:00
parent 8570b8660f
commit d6e8f7d4d8
Signed by untrusted user: Darks
GPG Key ID: F61F10FA138E797C
4 changed files with 3 additions and 3 deletions

View File

@ -14,5 +14,7 @@ login.login_view = 'login'
login.login_message = "Veuillez vous authentifier avant de continuer."
from app import models # IDK why this is here, but it works
from app.routes import index, login, search, account, admin, users # To load routes at initialization
from app.routes import index, search, users # To load routes at initialization
from app.routes.account import login, account
from app.routes.admin import index, groups, account
from app.utils import pluralize # To use pluralize into the templates

View File

@ -5,8 +5,6 @@ from app.forms.login import LoginForm
from app.models.users import Member
from app.utils.render import render
# from app.routes.index import index
@app.route('/login', methods=['GET', 'POST'])
def login():