|
|
@ -82,3 +82,9 @@ def edit_profile_admin(id): |
|
|
|
form.location.data = user.location |
|
|
|
form.about_me.data = user.about_me |
|
|
|
return render_template('edit_profile.html', form=form, user=user) |
|
|
|
|
|
|
|
|
|
|
|
@main.route('/post/<int:id>') |
|
|
|
def post(id): |
|
|
|
post = Post.query.get_or_404(id) |
|
|
|
return render_template('post.html', posts=[post]) |