Add frontend skeleton
This commit is contained in:
		
							
								
								
									
										11
									
								
								booking/templates/front_template.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								booking/templates/front_template.html
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										10
									
								
								duckbook/tests.py
									
									
									
									
									
										Normal 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) | ||||||
|  |  | ||||||
| @@ -1,5 +1,7 @@ | |||||||
| from django.conf.urls import patterns, include, url | from django.conf.urls import patterns, include, url | ||||||
|  | from django.views.generic import TemplateView | ||||||
|  |  | ||||||
| urlpatterns = patterns( | urlpatterns = patterns( | ||||||
|     '', |     '', | ||||||
|  |     url('^$', TemplateView.as_view(template_name = 'front_template.html'), name = 'index'), | ||||||
| ) | ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user