May 2018
Beginner to intermediate
526 pages
11h 57m
English
Create the following file structure inside the courses application directory:
templates/ base.html registration/ login.html logged_out.html
Before building the authentication templates, we need to prepare the base template for our project. Edit the base.html template file and add the following content to it:
{% load staticfiles %}<!DOCTYPE html><html><head> <meta charset="utf-8" /> <title>{% block title %}Educa{% endblock %}</title> <link href="{% static "css/base.css" %}" rel="stylesheet"></head><body> <div id="header"> <a href="/" class="logo">Educa</a> <ul class="menu"> {% if request.user.is_authenticated %} <li><a href="{% url "logout" %}">Sign out</a></li> {% else %} <li><a href="{% url "login" %}">Sign ...Read now
Unlock full access