add login functionality
This commit is contained in:
parent
5cdbf760e0
commit
9d859f4ffc
|
@ -0,0 +1,11 @@
|
|||
{% extends 'inventory/base.html' %}
|
||||
|
||||
{% block section_title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="login" name="login" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button name="button_login" type="submit">Login</button>
|
||||
</form>
|
||||
{% endblock %}
|
|
@ -1,8 +1,9 @@
|
|||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
path('', views.customers_table_view, name='customers'),
|
||||
path('customer/<int:pk>/', views.CustomerDetailView.as_view(),
|
||||
name='customer'),
|
||||
|
|
Loading…
Reference in New Issue