From 070eb9e54f9ab3827b2b18cdc58a85cbf1781c25 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Thu, 26 Dec 2013 11:34:09 -0600 Subject: [PATCH] Check if current_user exists in template Fixes #4 --- .../{{cookiecutter.app_name}}/templates/nav.html | 2 +- .../tests/webtest_tests.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html index 5b69bab..de27a80 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html @@ -22,7 +22,7 @@
  • Home
  • About
  • - {% if current_user.is_authenticated() %} + {% if current_user and current_user.is_authenticated() %}