From ae7ea8004fd2eff2e5de3a735d323420bc0bfa6c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 14 Jan 2015 17:03:28 +0100 Subject: [PATCH] Add frontend skeleton --- booking/templates/front_template.html | 11 +++++++++++ duckbook/tests.py | 10 ++++++++++ duckbook/urls.py | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 booking/templates/front_template.html create mode 100644 duckbook/tests.py diff --git a/booking/templates/front_template.html b/booking/templates/front_template.html new file mode 100644 index 0000000..a567c42 --- /dev/null +++ b/booking/templates/front_template.html @@ -0,0 +1,11 @@ + + + + Rubber Duck Booking Tool + + +

Rubber Duck Booking Tool

+ Home +{% block body %}{% endblock %} + + diff --git a/duckbook/tests.py b/duckbook/tests.py new file mode 100644 index 0000000..def16f1 --- /dev/null +++ b/duckbook/tests.py @@ -0,0 +1,10 @@ +from django.test import TestCase, Client + +class TestFront(TestCase): + def setUp(self): + self.client = Client() + + def test_front_page(self): + response = self.client.get('/') + self.assertEqual(response.status_code, 200) + diff --git a/duckbook/urls.py b/duckbook/urls.py index d9c317a..8bec597 100644 --- a/duckbook/urls.py +++ b/duckbook/urls.py @@ -1,5 +1,7 @@ from django.conf.urls import patterns, include, url +from django.views.generic import TemplateView urlpatterns = patterns( '', + url('^$', TemplateView.as_view(template_name = 'front_template.html'), name = 'index'), )