Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40-Midterm-Project
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
Andrea Tsai
CSCI40-Midterm-Project
Commits
ad35104c
Commit
ad35104c
authored
Mar 17, 2020
by
littleredpanda14
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created views
parent
20ee4d40
Pipeline
#1036
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
1 deletion
+52
-1
views.py
froyo/views.py
+52
-1
No files found.
froyo/views.py
View file @
ad35104c
from
django.shortcuts
import
render
from
django.views.generic.base
import
ListView
,
DetailView
,
UpdateView
,
CreateView
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
IngredientUpdateView
(
UpdateView
):
template_name
=
'orders_update_form.html'
class
IngredientCreateView
(
CreateView
):
template_name
=
'orders_create_form.html'
# Create your views here.
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