Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thegoodplace
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bienvenido Villabroza
thegoodplace
Commits
f064b369
Commit
f064b369
authored
Mar 18, 2020
by
thisLexic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created the ingredient list view and template
parent
3191e828
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
3 deletions
+21
-3
ingredients_list.html
thegoodplace/froyo/templates/ingredients_list.html
+9
-0
urls.py
thegoodplace/froyo/urls.py
+6
-0
views.py
thegoodplace/froyo/views.py
+2
-1
settings.py
thegoodplace/thegoodplace/settings.py
+1
-0
urls.py
thegoodplace/thegoodplace/urls.py
+3
-2
No files found.
thegoodplace/froyo/templates/ingredients_list.html
0 → 100644
View file @
f064b369
<!DOCTYPE html>
<html>
<head>
<title>
Ingredients - List
</title>
</head>
<body>
<h1>
Ingredients - List
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/froyo/urls.py
0 → 100644
View file @
f064b369
from
django.conf.urls
import
url
from
.
import
views
urlpatterns
=
[
url
(
r'list/'
,
views
.
list
)
]
\ No newline at end of file
thegoodplace/froyo/views.py
View file @
f064b369
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
thegoodplace/thegoodplace/settings.py
View file @
f064b369
...
@@ -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
=
[
...
...
thegoodplace/thegoodplace/urls.py
View file @
f064b369
...
@@ -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'
))
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment