Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI 40 Project 1
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
Kevin Daniel Sibug
CSCI 40 Project 1
Commits
5f85a1b9
Commit
5f85a1b9
authored
Mar 21, 2020
by
Kevin Sibug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the urls to include the views
parent
f3b8edd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
urls.py
thegoodplace/froyo/urls.py
+18
-0
urls.py
thegoodplace/thegoodplace/urls.py
+2
-16
No files found.
thegoodplace/froyo/urls.py
0 → 100644
View file @
5f85a1b9
from
django.urls
import
path
from
.
import
views
urlpatterns
=
[
path
(
'ingredients/list/'
,
views
.
IngredientsList
.
as_view
(),
name
=
"ingredients_list_view"
),
path
(
'ingredients/detail/'
,
views
.
IngredientsDetail
.
as_view
(),
name
=
"ingredients_detail_view"
),
path
(
'ingredients/update_form/'
,
views
.
IngredientsUpdate
.
as_view
(),
name
=
"ingredients_update_view"
),
path
(
'ingredients/create_form/'
,
views
.
IngredientsCreate
.
as_view
(),
name
=
"ingredients_create_view"
),
path
(
'recipes/list/'
,
views
.
RecipesList
.
as_view
(),
name
=
"recipes_list_view"
),
path
(
'recipes/detail/'
,
views
.
RecipesDetail
.
as_view
(),
name
=
"recipes_detail_view"
),
path
(
'recipes/update_form/'
,
views
.
RecipesUpdate
.
as_view
(),
name
=
"recipes_update_view"
),
path
(
'recipes/create_form/'
,
views
.
RecipesCreate
.
as_view
(),
name
=
"recipes_create_view"
),
path
(
'orders/list/'
,
views
.
OrdersList
.
as_view
(),
name
=
"orders_list_view"
),
path
(
'orders/detail/'
,
views
.
OrdersDetail
.
as_view
(),
name
=
"orders_detail_view"
),
path
(
'orders/update_form/'
,
views
.
OrdersUpdate
.
as_view
(),
name
=
"orders_update_view"
),
path
(
'orders/create_form/'
,
views
.
OrdersCreate
.
as_view
(),
name
=
"orders_create_view"
),
]
\ No newline at end of file
thegoodplace/thegoodplace/urls.py
View file @
5f85a1b9
"""thegoodplace URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
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
path
,
include
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
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