Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Maroket_Project1
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
Moira
Maroket_Project1
Commits
31def305
Commit
31def305
authored
Mar 21, 2020
by
Moira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited froyo views and urls
parent
8a21aab0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
urls.py
froyo/urls.py
+30
-0
views.py
froyo/views.py
+37
-0
No files found.
froyo/urls.py
View file @
31def305
from
django.conf.urls
import
url
from
.views
import
home_page
from
.views
import
ingredients_list
from
.views
import
ingredients_detail
from
.views
import
ingredients_update_form
from
.views
import
ingredients_create_form
from
.views
import
recipes_list
from
.views
import
recipes_detail
from
.views
import
recipes_update_form
from
.views
import
recipes_create_form
from
.views
import
orders_list
from
.views
import
orders_detail
from
.views
import
orders_update_form
from
.views
import
orders_create_form
urlpatterns
=
[
path
(
'home'
,
home_page
,
name
=
'home_page'
),
path
(
'ingredients/list'
,
ingredients_list
,
name
=
'ingredients_list'
),
path
(
'ingredients/detail'
,
ingredients_detail
,
name
=
'ingredients_detail'
),
path
(
'ingredients/update_form'
,
ingredients_update_form
,
name
=
'ingredients_update_form'
),
path
(
'ingredients/create_form'
,
ingredients_create_form
,
name
=
'ingredients_create_form'
),
path
(
'recipes/list'
,
recipes_list
,
name
=
'recipes_list'
),
path
(
'recipes/detail'
,
recipes_detail
,
name
=
'recipes_detail'
),
path
(
'recipes/update_form'
,
recipes_update_form
,
name
=
'recipes_update_form'
),
path
(
'recipes/create_form'
,
recipes_create_form
,
name
=
'recipes_create_form'
),
path
(
'orders/list'
,
orders_list
,
name
=
'orders_list'
),
path
(
'orders/detail'
,
orders_detail
,
name
=
'orders_detail'
),
path
(
'orders/update_form'
,
orders_update_form
,
name
=
'orders_update_form'
),
path
(
'orders/create_form'
,
orders_create_form
,
name
=
'recipes_create_form'
),
]
froyo/views.py
View file @
31def305
...
...
@@ -2,4 +2,41 @@ from django.shortcuts import render
# Create your views here.
def
home_page
(
request
):
return
render
(
request
,
'home_page.html'
)
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'
)
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'
)
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'
)
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