Commit 5f85a1b9 authored by Kevin Sibug's avatar Kevin Sibug

Updated the urls to include the views

parent f3b8edd0
from django.urls import path
from . import views
urlpatterns = [
path('ingredients/list/', views.IngredientsList.as_view(), name = "ingredients_list_view"),
path('ingredients/detail/', views.IngredientsDetail.as_view(), name = "ingredients_detail_view"),
path('ingredients/update_form/', views.IngredientsUpdate.as_view(), name = "ingredients_update_view"),
path('ingredients/create_form/', views.IngredientsCreate.as_view(), name = "ingredients_create_view"),
path('recipes/list/', views.RecipesList.as_view(), name = "recipes_list_view"),
path('recipes/detail/', views.RecipesDetail.as_view(), name = "recipes_detail_view"),
path('recipes/update_form/', views.RecipesUpdate.as_view(), name = "recipes_update_view"),
path('recipes/create_form/', views.RecipesCreate.as_view(), name = "recipes_create_view"),
path('orders/list/', views.OrdersList.as_view(), name = "orders_list_view"),
path('orders/detail/', views.OrdersDetail.as_view(), name = "orders_detail_view"),
path('orders/update_form/', views.OrdersUpdate.as_view(), name = "orders_update_view"),
path('orders/create_form/', views.OrdersCreate.as_view(), name = "orders_create_view"),
]
\ No newline at end of file
"""thegoodplace URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path,include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), 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