Commit 7eecbc2c authored by thisLexic's avatar thisLexic

connected all the urls to their respective views and templates

parent d1c6dc30
<!DOCTYPE html>
<html>
<head>
<title>Ingredients - Create</title>
</head>
<body>
<h1>Ingredients - Create</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Ingredients - Detail</title>
</head>
<body>
<h1>Ingredients - Detail</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Ingredients - Update</title>
</head>
<body>
<h1>Ingredients - Update</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders - Create</title>
</head>
<body>
<h1>Orders - Create</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders - Detail</title>
</head>
<body>
<h1>Orders - Detail</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders - List</title>
</head>
<body>
<h1>Orders - List</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Orders - Update</title>
</head>
<body>
<h1>Orders - Update</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes - Create</title>
</head>
<body>
<h1>Recipes - Create</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes - Detail</title>
</head>
<body>
<h1>Recipes - Detail</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes - List</title>
</head>
<body>
<h1>Recipes - List</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Recipes - Update</title>
</head>
<body>
<h1>Recipes - Update</h1>
</body>
</html>
\ No newline at end of file
......@@ -3,17 +3,17 @@ from . import views
urlpatterns = [
url(r'ingredients_list/', views.ingredients_list),
url(r'ingredients_detail/', views.ingredients_list),
url(r'ingredients_update_form/', views.ingredients_list),
url(r'ingredients_create_form/', views.ingredients_list),
url(r'ingredients_detail/', views.ingredients_detail),
url(r'ingredients_update_form/', views.ingredients_update_form),
url(r'ingredients_create_form/', views.ingredients_create_form),
url(r'recipes_list/', views.ingredients_list),
url(r'recipes_detail/', views.ingredients_list),
url(r'recipes_update_form/', views.ingredients_list),
url(r'recipes_create_form/', views.ingredients_list),
url(r'recipes_list/', views.recipes_list),
url(r'recipes_detail/', views.recipes_detail),
url(r'recipes_update_form/', views.recipes_update_form),
url(r'recipes_create_form/', views.recipes_create_form),
url(r'orders_list/', views.ingredients_list),
url(r'orders_detail/', views.ingredients_list),
url(r'orders_update_form/', views.ingredients_list),
url(r'orders_create_form/', views.ingredients_list),
url(r'orders_list/', views.orders_list),
url(r'orders_detail/', views.orders_detail),
url(r'orders_update_form/', views.orders_update_form),
url(r'orders_create_form/', views.orders_create_form),
]
\ No newline at end of file
from django.shortcuts import render
def ingredients_list(request):
return render(request, 'ingredients_list.html')
\ No newline at end of file
return render(request, 'ingredients_list.html')
def ingredients_detail(request):
return render(request, 'ingredients_detail.html')
def ingredients_update_form(request):
return render(request, 'ingredients_update_form.html')
def ingredients_create_form(request):
return render(request, 'ingredients_create_form.html')
def recipes_list(request):
return render(request, 'recipes_list.html')
def recipes_detail(request):
return render(request, 'recipes_detail.html')
def recipes_update_form(request):
return render(request, 'recipes_update_form.html')
def recipes_create_form(request):
return render(request, 'recipes_create_form.html')
def orders_list(request):
return render(request, 'orders_list.html')
def orders_detail(request):
return render(request, 'orders_detail.html')
def orders_update_form(request):
return render(request, 'orders_update_form.html')
def orders_create_form(request):
return render(request, '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