Add frontend skeleton

This commit is contained in:
Gergely Polonkai 2015-01-14 17:03:28 +01:00 committed by Gergely Polonkai
parent 8317ef9cca
commit ae7ea8004f
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Rubber Duck Booking Tool</title>
</head>
<body>
<h1>Rubber Duck Booking Tool</h1>
<a href="{% url 'index' %}">Home</a>
{% block body %}{% endblock %}
</body>
</html>

10
duckbook/tests.py Normal file
View File

@ -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)

View File

@ -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'),
)