La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
684 B

from flask import redirect, url_for, abort
from flask_login import login_required, current_user, logout_user
from app import app, db
from app.forms.account import UpdateAccountForm, RegistrationForm, DeleteAccountForm
from app.models.users import Member
from app.utils.render import render
def user(username):
user = Member.query.filter_by(name=username).first()
if not user:
return render('user.html', user=user)
def user_by_id(user_id):
user = Member.query.filter_by(id=user_id).first()
if not user:
return redirect(url_for('user',