Commit c7c1928d authored by Patrick James Ong's avatar Patrick James Ong

Added code for froyo urls

parent 8398bcbd
from django.conf.urls import url
from .views import IngredientListView, IngredientDetailView, IngredientUpdateView, IngredientCreateView
from .views import RecipesListView, RecipesDetailView, RecipesUpdateView, RecipesCreateView
from .views import OrdersListView, OrdersDetailView, OrdersUpdateView, OrdersCreateView
urlpatterns = [
url(r'^ingredients/list/$', IngredientListView.as_view(), name='ingredients_list'),
url(r'^ingredients/detail/$', IngredientDetailView.as_view(), name='ingredients_detail'),
url(r'^ingredients/update/$', IngredientUpdateView.as_view(), name='ingredients_update_form'),
url(r'^ingredients/new/$', IngredientCreateView.as_view(), name='ingredients_create_form'),
url(r'^recipes/list/$', RecipesListView.as_view(), name='recipes_list'),
url(r'^recipes/detail/$', RecipesDetailView.as_view(), name='recipes_detail'),
url(r'^recipes/update/$', RecipesUpdateView.as_view(), name='recipes_update_form'),
url(r'^recipes/new/$', RecipesCreateView.as_view(), name='recipes_create_form'),
url(r'^orders/list/$', OrdersListView.as_view(), name='orders_list'),
url(r'^orders/detail/$', OrdersDetailView.as_view(), name='orders_detail'),
url(r'^orders/update/$', OrdersUpdateView.as_view(), name='orders_update_form'),
url(r'^orders/new/$', OrdersCreateView.as_view(), name='orders_create_form'),
]
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