Commit 4b6836a7 authored by KyrronJ's avatar KyrronJ

Created an ingredient list view and a template

parent 2e7d1f2a
<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. # 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,11 @@ Including another URLconf ...@@ -13,9 +13,11 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include 1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
""" """
from django.conf.urls import url, include
from django.conf.urls import url from django.conf.urls import url
from django.contrib import admin
urlpatterns = [ urlpatterns = [
url(r'^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