From 8c4e533232e30cec8a33f6fb60c3297b58746554 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Fri, 1 Apr 2016 10:44:10 -0600 Subject: [PATCH] Start of a login form. --- .../registration/templates/login.html | 31 +++++++++++++++++++ bikeshop_project/registration/urls.py | 6 ++++ 2 files changed, 37 insertions(+) create mode 100644 bikeshop_project/registration/templates/login.html create mode 100644 bikeshop_project/registration/urls.py diff --git a/bikeshop_project/registration/templates/login.html b/bikeshop_project/registration/templates/login.html new file mode 100644 index 0000000..e12d229 --- /dev/null +++ b/bikeshop_project/registration/templates/login.html @@ -0,0 +1,31 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Welcome

+
+
+ + +
+
+ +
+
+ + + Input is not a number! +
+
+ +
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/bikeshop_project/registration/urls.py b/bikeshop_project/registration/urls.py new file mode 100644 index 0000000..a96e173 --- /dev/null +++ b/bikeshop_project/registration/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import url +from django.contrib.auth import views + +urlpatterns = [ + url(r'^login/$', views.login, {'template_name': 'login.html'}), +]