Made names consistent and added initial templates.

parent 2e5c665b
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
<!DOCTYPE html>
<html>
<head>
<title>The Good Place FroYo Shop</title>
</head>
</html>
...@@ -19,11 +19,11 @@ class OrdersTest(TestCase): ...@@ -19,11 +19,11 @@ class OrdersTest(TestCase):
self.assertTemplateUsed(response, 'orders_detail.html') self.assertTemplateUsed(response, 'orders_detail.html')
def test_orders_use_update_form_template(self): def test_orders_use_update_form_template(self):
response = self.client.get('/orders/update') response = self.client.get('/orders/update_form')
self.assertTemplateUsed(response, 'orders_update.html') self.assertTemplateUsed(response, 'orders_update.html')
def test_orders_use_create_form_template(self): def test_orders_use_create_form_template(self):
response = self.client.get('/orders/create') response = self.client.get('/orders/create_form')
self.assertTemplateUsed(response, 'orders_create.html') self.assertTemplateUsed(response, 'orders_create.html')
...@@ -38,11 +38,11 @@ class RecipesTest(TestCase): ...@@ -38,11 +38,11 @@ class RecipesTest(TestCase):
self.assertTemplateUsed(response, 'recipes_detail.html') self.assertTemplateUsed(response, 'recipes_detail.html')
def test_recipes_use_update_form_template(self): def test_recipes_use_update_form_template(self):
response = self.client.get('/recipes/update') response = self.client.get('/recipes/update_form')
self.assertTemplateUsed(response, 'recipes_update.html') self.assertTemplateUsed(response, 'recipes_update.html')
def test_recipes_use_create_form_template(self): def test_recipes_use_create_form_template(self):
response = self.client.get('/recipes/create') response = self.client.get('/recipes/create_form')
self.assertTemplateUsed(response, 'recipes_create.html') self.assertTemplateUsed(response, 'recipes_create.html')
...@@ -57,9 +57,9 @@ class IngredientsTest(TestCase): ...@@ -57,9 +57,9 @@ class IngredientsTest(TestCase):
self.assertTemplateUsed(response, 'ingredients_detail.html') self.assertTemplateUsed(response, 'ingredients_detail.html')
def test_ingredients_use_update_form_template(self): def test_ingredients_use_update_form_template(self):
response = self.client.get('/ingredients/update') response = self.client.get('/ingredients/update_form')
self.assertTemplateUsed(response, 'ingredients_update.html') self.assertTemplateUsed(response, 'ingredients_update.html')
def test_ingredients_use_create_form_template(self): def test_ingredients_use_create_form_template(self):
response = self.client.get('/ingredients/create') response = self.client.get('/ingredients/create_form')
self.assertTemplateUsed(response, 'ingredients_create.html') self.assertTemplateUsed(response, 'ingredients_create.html')
...@@ -6,14 +6,14 @@ urlpatterns = [ ...@@ -6,14 +6,14 @@ urlpatterns = [
url(r'^$', HomeView_.asView(), name='home'), url(r'^$', HomeView_.asView(), name='home'),
url(r'^orders$', OrdersListView.asView(), name='orders-list'), url(r'^orders$', OrdersListView.asView(), name='orders-list'),
url(r'^orders/detail$', OrdersDetailsView.asView(), name='orders-detail'), url(r'^orders/detail$', OrdersDetailsView.asView(), name='orders-detail'),
url(r'^orders/update$', OrdersUpdateView.asView(), name='orders-update'), url(r'^orders/update_form$', OrdersUpdateView.asView(), name='orders-update-form'),
url(r'^orders/create$', OrdersCreateView.asView(), name='orders-create'), url(r'^orders/create_form$', OrdersCreateView.asView(), name='orders-create-form'),
url(r'^recipes$', RecipesListView.asView(), name='recipes-list'), url(r'^recipes$', RecipesListView.asView(), name='recipes-list'),
url(r'^recipes/detail$', RecipesDetailsView.asView(), name='recipes-detail'), url(r'^recipes/detail$', RecipesDetailsView.asView(), name='recipes-detail'),
url(r'^recipes/update$', RecipesUpdateView.asView(), name='recipes-update'), url(r'^recipes/update_form$', RecipesUpdateView.asView(), name='recipes-update-form'),
url(r'^recipes/create$', RecipesCreateView.asView(), name='recipes-create'), url(r'^recipes/create_form$', RecipesCreateView.asView(), name='recipes-create-form'),
url(r'^ingredients$', IngredientsListView.asView(), name='ingredients-list'), url(r'^ingredients$', IngredientsListView.asView(), name='ingredients-list'),
url(r'^ingredients/detail$', IngredientsDetailsView.asView(), name='ingredients-detail'), url(r'^ingredients/detail$', IngredientsDetailsView.asView(), name='ingredients-detail'),
url(r'^ingredients/update$', IngredientsUpdateView.asView(), name='ingredients-update'), url(r'^ingredients/update_form$', IngredientsUpdateView.asView(), name='ingredients-update-form'),
url(r'^ingredients/create$', IngredientsCreateView.asView(), name='ingredients-create'), url(r'^ingredients/create_form$', IngredientsCreateView.asView(), name='ingredients-create-form'),
] ]
...@@ -14,11 +14,11 @@ class OrdersDetailView(TemplateView): ...@@ -14,11 +14,11 @@ class OrdersDetailView(TemplateView):
class OrdersUpdateView(TemplateView): class OrdersUpdateView(TemplateView):
template_name = "orders_update.html" template_name = "orders_update_form.html"
class OrdersCreateView(TemplateView): class OrdersCreateView(TemplateView):
template_name = "orders_create.html" template_name = "orders_create_form.html"
class RecipesListView(TemplateView): class RecipesListView(TemplateView):
...@@ -30,11 +30,11 @@ class RecipesDetailView(TemplateView): ...@@ -30,11 +30,11 @@ class RecipesDetailView(TemplateView):
class RecipesUpdateView(TemplateView): class RecipesUpdateView(TemplateView):
template_name = "recipes_update.html" template_name = "recipes_update_form.html"
class RecipesCreateView(TemplateView): class RecipesCreateView(TemplateView):
template_name = "recipes_create.html" template_name = "recipes_create_form.html"
class IngredientsListView(TemplateView): class IngredientsListView(TemplateView):
...@@ -46,8 +46,8 @@ class IngredientsDetailView(TemplateView): ...@@ -46,8 +46,8 @@ class IngredientsDetailView(TemplateView):
class IngredientsUpdateView(TemplateView): class IngredientsUpdateView(TemplateView):
template_name = "ingredients_update.html" template_name = "ingredients_update_form.html"
class IngredientsCreateView(TemplateView): class IngredientsCreateView(TemplateView):
template_name = "ingredients_create.html" template_name = "ingredients_create_form.html"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment