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
ab29e26d
Commit
ab29e26d
authored
Mar 21, 2020
by
Kevin Sibug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added views to display each template
parent
5f85a1b9
Pipeline
#1148
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
views.py
thegoodplace/froyo/views.py
+42
-1
settings.py
thegoodplace/thegoodplace/settings.py
+1
-0
No files found.
thegoodplace/froyo/views.py
View file @
ab29e26d
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
django.views.generic.base
import
TemplateView
from
django.views.generic
import
DetailView
,
ListView
,
CreateView
,
UpdateView
#Ingredients Views
class
IngredientsList
(
TemplateView
):
template_name
=
"ingredients_list.html"
class
IngredientsDetail
(
TemplateView
):
template_name
=
"ingredients_detail.html"
class
IngredientsUpdate
(
TemplateView
):
template_name
=
"ingredients_update_form.html"
class
IngredientsCreate
(
TemplateView
):
template_name
=
"ingredients_create_form.html"
#Recipes Views
class
RecipesList
(
TemplateView
):
template_name
=
"recipes_list.html"
class
RecipesDetail
(
TemplateView
):
template_name
=
"recipes_detail.html"
class
RecipesUpdate
(
TemplateView
):
template_name
=
"recipes_update_form.html"
class
RecipesCreate
(
TemplateView
):
template_name
=
"recipes_create_form.html"
#Orders Views
class
OrdersList
(
TemplateView
):
template_name
=
"orders_list.html"
class
OrdersDetail
(
TemplateView
):
template_name
=
"orders_detail.html"
class
OrdersUpdate
(
TemplateView
):
template_name
=
"orders_update_form.html"
class
OrdersCreate
(
TemplateView
):
template_name
=
"orders_create_form.html"
# Create your views here.
thegoodplace/thegoodplace/settings.py
View file @
ab29e26d
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'froyo'
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
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