Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Midterm_Project
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
Ayn Collado
Midterm_Project
Commits
d80d5b5e
Commit
d80d5b5e
authored
Mar 18, 2020
by
Ayn Collado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made urls and views for froyo
parent
2f73000c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
urls.py
thegoodplace/froyo/urls.py
+19
-0
views.py
thegoodplace/froyo/views.py
+29
-1
urls.py
thegoodplace/thegoodplace/urls.py
+2
-1
No files found.
thegoodplace/froyo/urls.py
0 → 100644
View file @
d80d5b5e
from
django.conf.urls
import
url
from
.
import
views
urlpatterns
=
[
url
(
r'ingredients_list/'
,
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
.
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
.
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
thegoodplace/froyo/views.py
View file @
d80d5b5e
from
django.shortcuts
import
render
from
django.shortcuts
import
render
# Create your views here.
#Ingredients List
def
ingredients_list
(
request
):
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'
)
#Recipes List
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'
)
#Orders List
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'
)
thegoodplace/thegoodplace/urls.py
View file @
d80d5b5e
...
@@ -14,8 +14,9 @@ Including another URLconf
...
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
include
,
path
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
r''
,
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