Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Midterm-Project-186050-Columbres
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
Alysha Columbres
Midterm-Project-186050-Columbres
Commits
06dc2fce
Commit
06dc2fce
authored
Mar 16, 2020
by
Alysha Columbres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the views.py file in froyo and the urls.py file in thegoodplace
parent
071fde9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
views.py
froyo/views.py
+14
-13
urls.py
thegoodplace/urls.py
+2
-1
No files found.
froyo/views.py
View file @
06dc2fce
from
django.views.generic
import
ListView
,
DetailView
,
UpdateView
,
CreateView
from
django.shortcuts
import
render
from
django.views.generic
import
TemplateView
# Create your views here.
class
IngredientsListView
(
List
View
):
class
IngredientsListView
(
Template
View
):
template_name
=
'ingredients_list.html'
class
IngredientsDetailView
(
Detail
View
):
class
IngredientsDetailView
(
Template
View
):
template_name
=
'ingredients_detail.html'
class
IngredientsUpdateView
(
Upd
ateView
):
class
IngredientsUpdateView
(
Templ
ateView
):
template_name
=
'ingredients_update_form.html'
class
IngredientsCreateView
(
Cre
ateView
):
class
IngredientsCreateView
(
Templ
ateView
):
template_name
=
'ingredients_create_form.html'
class
RecipesListView
(
List
View
):
class
RecipesListView
(
Template
View
):
template_name
=
'recipes_list.html'
class
RecipesDetailView
(
Detail
View
):
class
RecipesDetailView
(
Template
View
):
template_name
=
'recipes_detail.html'
class
RecipesUpdateView
(
Upd
ateView
):
class
RecipesUpdateView
(
Templ
ateView
):
template_name
=
'recipes_update_form.html'
class
RecipesCreateView
(
Cre
ateView
):
class
RecipesCreateView
(
Templ
ateView
):
template_name
=
'recipes_create_form.html'
class
OrdersListView
(
List
View
):
class
OrdersListView
(
Template
View
):
template_name
=
'orders_list.html'
class
OrdersDetailView
(
Detail
View
):
class
OrdersDetailView
(
Template
View
):
template_name
=
'orders_detail.html'
class
OrdersUpdateView
(
Upd
ateView
):
class
OrdersUpdateView
(
Templ
ateView
):
template_name
=
'orders_update_form.html'
class
OrdersCreateView
(
Cre
ateView
):
class
OrdersCreateView
(
Templ
ateView
):
template_name
=
'orders_create_form.html'
\ No newline at end of file
thegoodplace/urls.py
View file @
06dc2fce
...
...
@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from
django.conf.urls
import
url
from
django.conf.urls
import
url
,
include
from
django.contrib
import
admin
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
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