diff --git a/booking/templates/booking/vocabulary.html b/booking/templates/booking/vocabulary.html new file mode 100644 index 0000000..30e46fc --- /dev/null +++ b/booking/templates/booking/vocabulary.html @@ -0,0 +1,10 @@ +{% extends 'front_template.html' %} + +{% block body %} +

Vocabulary

+ +
+
Duck
+
Despite the name, duck refers to any rubber or plastic toy bookable in this app.
+
+{% endblock %} diff --git a/booking/templates/front_template.html b/booking/templates/front_template.html index a567c42..8689e6c 100644 --- a/booking/templates/front_template.html +++ b/booking/templates/front_template.html @@ -6,6 +6,7 @@

Rubber Duck Booking Tool

Home + Vocabulary {% block body %}{% endblock %} diff --git a/booking/tests.py b/booking/tests.py new file mode 100644 index 0000000..f4f9ccf --- /dev/null +++ b/booking/tests.py @@ -0,0 +1,9 @@ +from django.test import TestCase, Client + +class FrontTest(TestCase): + def setUp(self): + self.client = Client() + + def test_vocabulary_page(self): + response = self.client.get('/vocabulary.html') + self.assertEqual(response.status_code, 200) diff --git a/booking/urls.py b/booking/urls.py new file mode 100644 index 0000000..d852b66 --- /dev/null +++ b/booking/urls.py @@ -0,0 +1,11 @@ +from django.conf.urls import patterns, url +from django.views.generic.base import TemplateView + +urlpatterns = patterns( + '', + url( + r'^vocabulary.html$', + TemplateView.as_view(template_name = 'booking/vocabulary.html'), + name = 'vocabulary' + ), +) diff --git a/duckbook/urls.py b/duckbook/urls.py index 8bec597..f933d21 100644 --- a/duckbook/urls.py +++ b/duckbook/urls.py @@ -4,4 +4,5 @@ from django.views.generic import TemplateView urlpatterns = patterns( '', url('^$', TemplateView.as_view(template_name = 'front_template.html'), name = 'index'), + url('', include('booking.urls', namespace = 'booking')), )