Commit 5bdeba94 authored by abbeeeeyyyyy's avatar abbeeeeyyyyy

Added to the urls of the project

parent 20aec9c0
......@@ -2,6 +2,8 @@ from django.test import TestCase
from django.urls import resolve
from django.http import HttpRequest
from .views import HomePage
from .views import Ingredients_ListView
from .views import Ingredients_DetailView
from .views import Ingredients_UpdateFormView
......@@ -26,7 +28,7 @@ from django.template.loader import render_to_string
# Create your tests here.
class TheGoodPlaceSiteTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('/froyo/')
response = self.client.get('froyo/')
self.assertTemplateUsed(response, 'froyo.html')
def test_ingredients_list_page_returns_correct_html(self):
......
......@@ -23,7 +23,7 @@ from .views import Orders_CreateFormView
urlpatterns = [
path('', HomePage.as_view(), name='froyo'),
path('froyo/', HomePage.as_view(), name='heroes'),
path('froyo/', HomePage.as_view(), name='froyo'),
path('froyo/ingredients/list/', Ingredients_ListView.as_view(), name='ingredients_list'),
path('froyo/ingredients/detail/', Ingredients_DetailView.as_view(), name='ingredients_detail'),
......
......@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('froyo.urls')),
]
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