Commit 11af5350 authored by Joaquin's avatar Joaquin

HTML files and froyo url

parent 0a1d0881
<!DOCTYPE html>
<html>
<head>
<title>Ingredients Create Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Ingredients Detail</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Ingredients List</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Ingredients Update Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders Create Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders Detail</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders List</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders Update Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes Create Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes Detail</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>recipes_list</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes Update Form</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
from django.conf.urls import url
from .views import IngredientsListView, IngredientsDetailView, IngredientsUpdateView, IngredientsCreateView, RecipesListView, RecipesDetailView, RecipesUpdateView, RecipesCreateView, OrdersListView, OrdersDetailView, OrdersUpdateView, OrdersCreateView
urlpatterns = [
url(r'^ingredients_list$', IngredientsListView.as_view(), name='Ingredients_List_show'),
url(r'^ingredients_detail$', IngredientsDetailView.as_view(), name='Ingredients_Detail_show'),
url(r'^ingredients_update$', IngredientsUpdateView.as_view(), name='Ingredients_Update_show'),
url(r'^ingredients_create$', IngredientsCreateView.as_view(), name='Ingredients_Create_show'),
url(r'^recipes_list$', RecipesListView.as_view(), name='Recipes_List_show'),
url(r'^recipes_detail$', RecipesDetailView.as_view(), name='Recipes_Detail_show'),
url(r'^recipes_update$', RecipesUpdateView.as_view(), name='Recipes_Update_show'),
url(r'^recipes_create$', RecipesCreateView.as_view(), name='Recipes_Create_show'),
url(r'^orders_list$', OrdersListView.as_view(), name='Orders_List_show'),
url(r'^orders_detail$', OrdersDetailView.as_view(), name='Orders_Detail_show'),
url(r'^orders_update$', OrdersUpdateView.as_view(), name='Orders_Update_show'),
url(r'^orders_create$', OrdersCreateView.as_view(), name='Orders_Create_show'),
]
\ No newline at end of file
from django.shortcuts import render
from django.views.generic import ListView, DetailView, UpdateView, CreateView
# Create your views here.
class IngredientsListView(ListView):
template_name = 'ingredients_list.html'
class IngredientsDetailView(DetailView):
template_name = 'ingredients_detail.html'
class IngredientsUpdateView(UpdateView):
template_name = 'ingredients_update_form.html'
class IngredientsCreateView(CreateView):
template_name = 'ingredients_create_form.html'
class RecipesListView(ListView):
template_name = 'recipes_list.html'
class RecipesDetailView(DetailView):
template_name = 'recipes_detail.html'
class RecipesUpdateView(UpdateView):
template_name = 'recipes_update_form.html'
class RecipesCreateView(ListView):
template_name = 'recipes_create_form.html'
class OrdersListView(ListView):
template_name = 'orders_list.html'
class OrdersDetailView(ListView):
template_name = 'orders_detail.html'
class OrdersUpdateListView(ListView):
template_name = 'orders_update_form.html'
class OrdersCreateView(ListView):
template_name = 'orders_create_form.html'
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