Commit 20aec9c0 authored by abbeeeeyyyyy's avatar abbeeeeyyyyy

Fixed indentation errors

parent a9f8318b
<html> <html>
<head> <head>
<title>Froyo</title>
</head> </head>
<body> <body>
......
...@@ -41,7 +41,7 @@ class TheGoodPlaceSiteTest(TestCase): ...@@ -41,7 +41,7 @@ class TheGoodPlaceSiteTest(TestCase):
response = self.client.get('froyo/ingredients/update/') response = self.client.get('froyo/ingredients/update/')
self.assertTemplateUsed(response, 'ingredients_update_form.html') self.assertTemplateUsed(response, 'ingredients_update_form.html')
def test_ingredients_create_page_returns_correct_html(self): def test_ingredients_create_page_returns_correct_html(self):
response = self.client.get('froyo/ingredients/create/') response = self.client.get('froyo/ingredients/create/')
self.assertTemplateUsed(response, 'ingredients_create_form.html') self.assertTemplateUsed(response, 'ingredients_create_form.html')
...@@ -57,7 +57,7 @@ class TheGoodPlaceSiteTest(TestCase): ...@@ -57,7 +57,7 @@ class TheGoodPlaceSiteTest(TestCase):
response = self.client.get('froyo/recipes/update/') response = self.client.get('froyo/recipes/update/')
self.assertTemplateUsed(response, 'recipes_update_form.html') self.assertTemplateUsed(response, 'recipes_update_form.html')
def test_recipe_create_form_page_returns_correct_html(self): def test_recipe_create_form_page_returns_correct_html(self):
response = self.client.get('froyo/recipes/create/') response = self.client.get('froyo/recipes/create/')
self.assertTemplateUsed(response, 'recipes_create_form.html') self.assertTemplateUsed(response, 'recipes_create_form.html')
......
from django.urls import path from django.urls import path
from django.contrib import admin from django.contrib import admin
from .views import HomePage
from .views import Ingredients_ListView from .views import Ingredients_ListView
from .views import Ingredients_DetailView from .views import Ingredients_DetailView
from .views import Ingredients_UpdateFormView from .views import Ingredients_UpdateFormView
...@@ -20,8 +22,8 @@ from .views import Orders_CreateFormView ...@@ -20,8 +22,8 @@ from .views import Orders_CreateFormView
urlpatterns = [ urlpatterns = [
path('', HeroesView.as_view(), name='froyo'), path('', HomePage.as_view(), name='froyo'),
path('froyo/', HeroesView.as_view(), name='heroes'), path('froyo/', HomePage.as_view(), name='heroes'),
path('froyo/ingredients/list/', Ingredients_ListView.as_view(), name='ingredients_list'), path('froyo/ingredients/list/', Ingredients_ListView.as_view(), name='ingredients_list'),
path('froyo/ingredients/detail/', Ingredients_DetailView.as_view(), name='ingredients_detail'), path('froyo/ingredients/detail/', Ingredients_DetailView.as_view(), name='ingredients_detail'),
......
...@@ -6,6 +6,9 @@ from django.shortcuts import render ...@@ -6,6 +6,9 @@ from django.shortcuts import render
# Create your views here. # Create your views here.
class HomePage(TemplateView):
template_name = 'froyo.html'
class Ingredients_ListView(TemplateView): class Ingredients_ListView(TemplateView):
template_name = 'ingredients_list.html' template_name = 'ingredients_list.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