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
Dirk Reyes
CSCI 40 Project 1
Commits
ef4cb5d7
Commit
ef4cb5d7
authored
Mar 25, 2020
by
Dirk Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the templates to froyo/views.py
parent
9589d83a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
views.py
froyo/views.py
+37
-2
No files found.
froyo/views.py
View file @
ef4cb5d7
from
django.
shortcuts
import
render
from
django.
views.generic.base
import
TemplateView
# Create your views here.
class
IngredientsList
(
TemplateView
):
template_name
=
"ingredients_list.html"
class
IngredientsDetail
(
TemplateView
):
template_name
=
"ingredients_detail.html"
class
IngredientsUpdateForm
(
TemplateView
):
template_name
=
"ingredients_update_form.html"
class
IngredientsCreateForm
(
TemplateView
):
template_name
=
"ingredients_create_form.html"
class
RecipesList
(
TemplateView
):
template_name
=
"recipes_list.html"
class
RecipesDetail
(
TemplateView
):
template_name
=
"recipes_detail.html"
class
RecipesUpdateForm
(
TemplateView
):
template_name
=
"recipes_update_form.html"
class
RecipesCreateForm
(
TemplateView
):
template_name
=
"recipes_create_form.html"
class
OrdersList
(
TemplateView
):
template_name
=
"orders_list.html"
class
OrdersDetail
(
TemplateView
):
template_name
=
"orders_detail.html"
class
OrdersUpdateForm
(
TemplateView
):
template_name
=
"orders_update_form.html"
class
OrdersCreateForm
(
TemplateView
):
template_name
=
"orders_create_form.html"
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