Commit f064b369 authored by thisLexic's avatar thisLexic

created the ingredient list view and template

parent 3191e828
<!DOCTYPE html>
<html>
<head>
<title>Ingredients - List</title>
</head>
<body>
<h1>Ingredients - List</h1>
</body>
</html>
\ No newline at end of file
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'list/', views.list)
]
\ No newline at end of file
from django.shortcuts import render from django.shortcuts import render
# Create your views here. def list(request):
return render(request, 'ingredients_list.html')
\ No newline at end of file
...@@ -37,6 +37,7 @@ INSTALLED_APPS = [ ...@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'froyo',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -13,9 +13,10 @@ Including another URLconf ...@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path 1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.conf.urls import url, include
from django.contrib import admin from django.contrib import admin
from django.urls import path
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), url(r'^admin/', admin.site.urls),
url(r'^froyo/', include('froyo.urls'))
] ]
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