Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm-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
Abigail Moreno
midterm-thegoodplace
Commits
155b0a7e
Commit
155b0a7e
authored
Mar 18, 2020
by
abbeeeeyyyyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished the views and urls
parent
d8a30f09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
urls.py
froyo/urls.py
+40
-0
No files found.
froyo/urls.py
View file @
155b0a7e
from
django.urls
import
path
from
django.contrib
import
admin
from
.views
import
Ingredients_ListView
from
.views
import
Ingredients_DetailView
from
.views
import
Ingredients_UpdateFormView
from
.views
import
Ingredients_CreateFormView
from
.views
import
Recipes_ListView
from
.views
import
Recipes_DetailView
from
.views
import
Recipes_UpdateFormView
from
.views
import
Recipes_CreateFormView
from
.views
import
Orders_ListView
from
.views
import
Orders_DetailView
from
.views
import
Orders_UpdateFormView
from
.views
import
Orders_CreateFormView
urlpatterns
=
[
path
(
''
,
HeroesView
.
as_view
(),
name
=
'heroes'
),
path
(
'heroes/'
,
HeroesView
.
as_view
(),
name
=
'heroes'
),
path
(
'TheGoodPlace/Ingredients/List/'
,
Ingredients_ListView
.
as_view
(),
name
=
'ingredients_list'
),
path
(
'TheGoodPlace/Ingredients/Detail/'
,
Ingredients_DetailView
.
as_view
(),
name
=
'ingredients_detail'
),
path
(
'TheGoodPlace/Ingredients/UpdateForm/'
,
Ingredients_UpdateFormView
.
as_view
(),
name
=
'ingredients_update_form'
),
path
(
'TheGoodPlace/Ingredients/CreateForm/'
,
Ingredients_CreateFormView
.
as_view
(),
name
=
'ingredients_create_form'
),
path
(
'TheGoodPlace/Recipes/List/'
,
Recipes_ListView
.
as_view
(),
name
=
'recipes_list'
),
path
(
'TheGoodPlace/Recipes/Detail/'
,
Recipes_DetailView
.
as_view
(),
name
=
'recipes_detail'
),
path
(
'TheGoodPlace/Recipes/UpdateForm/'
,
Recipes_UpdateFormView
.
as_view
(),
name
=
'recipes_update_form'
),
path
(
'TheGoodPlace/Recipes/CreateForm/'
,
Recipes_CreateFormView
.
as_view
(),
name
=
'recipes_create_form'
),
path
(
'TheGoodPlace/Orders/List/'
,
JesterView
.
as_view
(),
name
=
'orders_list'
),
path
(
'TheGoodPlace/Orders/Detail/'
,
SunfloweyView
.
as_view
(),
name
=
'orders_detail'
),
path
(
'TheGoodPlace/Orders/UpdateForm/'
,
CloudView
.
as_view
(),
name
=
'orders_update_form'
),
path
(
'TheGoodPlace/Orders/CreateForm/'
,
HeroesView
.
as_view
(),
name
=
'orders_create_form'
),
]
\ No newline at end of file
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