added authentication

This commit is contained in:
MassiveAtoms
2020-07-09 02:14:08 -03:00
parent 62b9dfd94f
commit cce3b1e733
18 changed files with 349 additions and 89 deletions

View File

@ -0,0 +1,6 @@
{% if user.is_authenticated %}
{% else %}
<h1>You don't have permission to view this.</h1>
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
{% endif %}