Commit 155b0a7e authored by abbeeeeyyyyy's avatar abbeeeeyyyyy

Finished the views and urls

parent d8a30f09
from django.urls import path
from django.contrib import admin
from .views import Ingredients_ListView
from .views import Ingredients_DetailView
from .views import Ingredients_UpdateFormView
from .views import Ingredients_CreateFormView
from .views import Recipes_ListView
from .views import Recipes_DetailView
from .views import Recipes_UpdateFormView
from .views import Recipes_CreateFormView
from .views import Orders_ListView
from .views import Orders_DetailView
from .views import Orders_UpdateFormView
from .views import Orders_CreateFormView
urlpatterns = [
path('', HeroesView.as_view(), name='heroes'),
path('heroes/', HeroesView.as_view(), name='heroes'),
path('TheGoodPlace/Ingredients/List/', Ingredients_ListView.as_view(), name='ingredients_list'),
path('TheGoodPlace/Ingredients/Detail/', Ingredients_DetailView.as_view(), name='ingredients_detail'),
path('TheGoodPlace/Ingredients/UpdateForm/', Ingredients_UpdateFormView.as_view(), name='ingredients_update_form'),
path('TheGoodPlace/Ingredients/CreateForm/', Ingredients_CreateFormView.as_view(), name='ingredients_create_form'),
path('TheGoodPlace/Recipes/List/', Recipes_ListView.as_view(), name='recipes_list'),
path('TheGoodPlace/Recipes/Detail/', Recipes_DetailView.as_view(), name='recipes_detail'),
path('TheGoodPlace/Recipes/UpdateForm/', Recipes_UpdateFormView.as_view(), name='recipes_update_form'),
path('TheGoodPlace/Recipes/CreateForm/', Recipes_CreateFormView.as_view(), name='recipes_create_form'),
path('TheGoodPlace/Orders/List/', JesterView.as_view(), name='orders_list'),
path('TheGoodPlace/Orders/Detail/', SunfloweyView.as_view(), name='orders_detail'),
path('TheGoodPlace/Orders/UpdateForm/', CloudView.as_view(), name='orders_update_form'),
path('TheGoodPlace/Orders/CreateForm/', HeroesView.as_view(), name='orders_create_form'),
]
\ No newline at end of file
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