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
52ac6c44
Commit
52ac6c44
authored
Mar 15, 2020
by
Alysha Columbres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the views.py file in froyo
parent
bb9eb0cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
views.py
froyo/views.py
+46
-0
No files found.
froyo/views.py
View file @
52ac6c44
from
django.views.generic
import
ListView
,
DetailView
,
UpdateView
,
CreateView
from
django.views.generic
import
ListView
,
DetailView
,
UpdateView
,
CreateView
# Create your views here.
# Create your views here.
class
IngredientsListView
(
ListView
):
template_name
=
'ingredients_list.html'
class
IngredientsDetailView
(
DetailView
):
template_name
=
'ingredients_detail.html'
class
IngredientsUpdateView
(
UpdateView
):
template_name
=
'ingredients_update_form.html'
class
IngredientsCreateView
(
CreateView
):
template_name
=
'ingredients_create_form.html'
class
RecipesListView
(
ListView
):
template_name
=
'recipes_list.html'
class
RecipesDetailView
(
DetailView
):
template_name
=
'recipes_detail.html'
class
RecipesUpdateView
(
UpdateView
):
template_name
=
'recipes_update_form.html'
class
RecipesCreateView
(
CreateView
):
template_name
=
'recipes_create_form.html'
class
OrdersListView
(
ListView
):
template_name
=
'orders_list.html'
class
OrdersDetailView
(
DetailView
):
template_name
=
'orders_detail.html'
class
OrdersUpdateView
(
UpdateView
):
template_name
=
'orders_update_form.html'
class
OrdersCreateView
(
CreateView
):
template_name
=
'orders_create_form.html'
\ 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