From 2d0dbc693a8e66f835076dea1fe3fd504d292101 Mon Sep 17 00:00:00 2001 From: Aleksandr Sobolev Date: Thu, 12 Jan 2017 10:05:42 +0600 Subject: [PATCH] Refs Issue #119 replace session with current_user, remove unnecessary href --- .../{{cookiecutter.app_name}}/templates/public/home.html | 4 ++-- .../{{cookiecutter.app_name}}/templates/users/members.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html index 4a94875..3485a6d 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html @@ -20,12 +20,12 @@

SQLAlchemy

SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

-

Official website »

+

Official website »

WTForms

WTForms is a flexible forms validation and rendering library for python web development.

-

Official website »

+

Official website »

diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/users/members.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/users/members.html index dc2b897..5179bfb 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/users/members.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/users/members.html @@ -1,7 +1,7 @@ {% raw %} {% extends "layout.html" %} {% block content %} -

Welcome {{ session.username }}

+

Welcome {{ current_user.username }}

This is the members-only page.

{% endblock %} {% endraw%}