diff --git a/bikeshop_project/bikeshop/urls.py b/bikeshop_project/bikeshop/urls.py index 05aa77e..5a04e02 100644 --- a/bikeshop_project/bikeshop/urls.py +++ b/bikeshop_project/bikeshop/urls.py @@ -15,11 +15,13 @@ Including another URLconf """ from django.conf.urls import include, url from django.contrib import admin +from django.contrib.auth.views import login from core import urls as core_urls from registration import urls as member_urls urlpatterns = [ url(r'^', include(core_urls)), + url(r'^login/', login, {'template_name': 'login.html'}), url(r'^member/', include(member_urls)), url(r'^admin/', admin.site.urls), ] diff --git a/bikeshop_project/registration/templates/login.html b/bikeshop_project/registration/templates/login.html index e12d229..5e141de 100644 --- a/bikeshop_project/registration/templates/login.html +++ b/bikeshop_project/registration/templates/login.html @@ -1,31 +1,68 @@ {% extends 'base.html' %} +{% load staticfiles compress %} + +{% block styles %} + {{ block.super }} + {% compress css %} + + {% endcompress %} +{% endblock %} + +{% block scripts %} + {{ block.super }} + +{% endblock %} + + + {% block content %}

Welcome

-
+ + {% if form.non_field_errors %} +
+ {{ form.non_field_errors }} +
+ {% endif %} + {% csrf_token %}
- - + +
+
+ + +
+ +
+ + Become a Member +
- -
-
- - - Input is not a number! -
-
-
- - Get Started - -
-
- -
+
{% endblock %} \ No newline at end of file