login

parent 51f7425b
Pipeline #29080 canceled with stages
{% extends "base.html" %}
{% block content %}
<a href="{% url 'login' %}" class="button">Log in</a>
{% endblock %}
......@@ -5,6 +5,7 @@
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
yooooooo
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<table>
......
......@@ -5,7 +5,7 @@ from django.contrib.auth.decorators import login_required
# Create your views here.
def index(request):
return render(request, 'base.html')
return render(request, 'home.html')
@login_required
def api(request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment