diff --git a/Vagrantfile b/Vagrantfile index 6af54c4..8d2b93c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -32,7 +32,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. config.vm.synced_folder '.', '/vagrant', disabled: true - config.vm.synced_folder "bikeshop_project", "/srv/bikeshop", type: "nfs" + config.vm.synced_folder "bikeshop_project", "/srv/bikeshop" config.vm.provision "ansible" do |ansible| ansible.groups = { 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 diff --git a/bikeshop_project/registration/urls.py b/bikeshop_project/registration/urls.py index 26c068d..84781dd 100644 --- a/bikeshop_project/registration/urls.py +++ b/bikeshop_project/registration/urls.py @@ -2,5 +2,5 @@ from django.conf.urls import url from .views import MemberFormView urlpatterns = [ - url(r'^new/$', MemberFormView.as_view()), + url(r'^new/$', MemberFormView.as_view(), name='signup'), ]