Commit 12e3c5a1 authored by Dirk Reyes's avatar Dirk Reyes

Created froyo/urls.py and added the url patters

parent ef4cb5d7
from django.confs.url import url
from .views import IngredientsList, IngredientsDetail, IngredientsUpdateForm, IngredientsCreateForm, RecipesList, RecipesDetail, RecipesUpdateForm, RecipesCreateForm, OrdersList, OrdersDetail, OrdersUpdateForm, OrdersCreateForm
urlpatterns=[
url(r'^ingredients/list/$', IngredientsList.as_view(), name"ingredients_list"),
url(r'^ingredients/detail/$', IngredientsDetail.as_view(), name"ingredients_detail"),
url(r'^ingredients/update_form/$', IngredientsUpdateForm.as_view(), name"ingredients_update_form"),
url(r'^ingredients/create_form/$', IngredientsCreateForm.as_view(), name"ingredients_create_form"),
url(r'^recipes/list/$', RecipesList.as_view(), name"recipes_list"),
url(r'^recipes/detail/$', RecipesDetail.as_view(), name"recipes_detail"),
url(r'^recipes/update_form/$', RecipesUpdateForm.as_view(), name"recipes_update_form"),
url(r'^recipes/create_form/$', RecipesCreateForm.as_view(), name"recipes_create_form"),
url(r'^orders/list/$', OrdersList.as_view(), name"orders_list"),
url(r'^orders/detail/$', OrdersDetail.as_view(), name"orders_detail"),
url(r'^orders/update_form/$', OrdersUpdateForm.as_view(), name"orders_update_form"),
url(r'^orders/create_form/$', OrdersCreateForm.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