Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40PROJECT
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
Kyrron
CSCI40PROJECT
Commits
4b6836a7
Commit
4b6836a7
authored
Mar 21, 2020
by
KyrronJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created an ingredient list view and a template
parent
2e7d1f2a
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
1 deletion
+20
-1
ingredients_list.html
froyo/templates/ingredients_list.html
+8
-0
urls.py
froyo/urls.py
+6
-0
views.py
froyo/views.py
+2
-0
__init__.cpython-37.pyc
thegoodplace/__pycache__/__init__.cpython-37.pyc
+0
-0
settings.cpython-37.pyc
thegoodplace/__pycache__/settings.cpython-37.pyc
+0
-0
urls.cpython-37.pyc
thegoodplace/__pycache__/urls.cpython-37.pyc
+0
-0
wsgi.cpython-37.pyc
thegoodplace/__pycache__/wsgi.cpython-37.pyc
+0
-0
settings.py
thegoodplace/settings.py
+1
-0
urls.py
thegoodplace/urls.py
+3
-1
No files found.
froyo/templates/ingredients_list.html
0 → 100644
View file @
4b6836a7
<html>
<head>
<title>
Ingredients - List
</title>
</head>
<body>
<h1>
Ingredients - List
</h1>
</body>
</html>
\ No newline at end of file
froyo/urls.py
0 → 100644
View file @
4b6836a7
from
django.conf.urls
import
url
from
.
import
views
urlpatterns
=
[
url
(
r'list/'
,
views
.
list
)
]
\ No newline at end of file
froyo/views.py
View file @
4b6836a7
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
thegoodplace/__pycache__/__init__.cpython-37.pyc
0 → 100644
View file @
4b6836a7
File added
thegoodplace/__pycache__/settings.cpython-37.pyc
0 → 100644
View file @
4b6836a7
File added
thegoodplace/__pycache__/urls.cpython-37.pyc
0 → 100644
View file @
4b6836a7
File added
thegoodplace/__pycache__/wsgi.cpython-37.pyc
0 → 100644
View file @
4b6836a7
File added
thegoodplace/settings.py
View file @
4b6836a7
...
@@ -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/urls.py
View file @
4b6836a7
...
@@ -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'
))
]
]
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