You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
437 B
Python
17 lines
437 B
Python
from flask import Blueprint, render_template
|
|
from flask import redirect, url_for
|
|
from flask_login import logout_user
|
|
|
|
from suchwowx.models import User
|
|
from suchwowx import config
|
|
|
|
|
|
bp = Blueprint('user', 'user')
|
|
|
|
@bp.route('/user/<handle>')
|
|
def show(handle):
|
|
user = User.query.filter(User.handle == handle).first()
|
|
if not user:
|
|
return redirect(url_for('meme.index'))
|
|
return render_template('profile.html', user=user)
|