Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm-thegoodplace
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
Abigail Moreno
midterm-thegoodplace
Commits
20aec9c0
Commit
20aec9c0
authored
Mar 18, 2020
by
abbeeeeyyyyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed indentation errors
parent
a9f8318b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
froyo.html
froyo/templates/froyo.html
+1
-1
tests.py
froyo/tests.py
+2
-2
urls.py
froyo/urls.py
+4
-2
views.py
froyo/views.py
+3
-0
No files found.
froyo/templates/froyo.html
View file @
20aec9c0
<html>
<head>
<title>
Froyo
</title>
</head>
<body>
...
...
froyo/tests.py
View file @
20aec9c0
...
...
@@ -41,7 +41,7 @@ class TheGoodPlaceSiteTest(TestCase):
response
=
self
.
client
.
get
(
'froyo/ingredients/update/'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update_form.html'
)
def
test_ingredients_create_page_returns_correct_html
(
self
):
def
test_ingredients_create_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'froyo/ingredients/create/'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create_form.html'
)
...
...
@@ -57,7 +57,7 @@ class TheGoodPlaceSiteTest(TestCase):
response
=
self
.
client
.
get
(
'froyo/recipes/update/'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update_form.html'
)
def
test_recipe_create_form_page_returns_correct_html
(
self
):
def
test_recipe_create_form_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'froyo/recipes/create/'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create_form.html'
)
...
...
froyo/urls.py
View file @
20aec9c0
from
django.urls
import
path
from
django.contrib
import
admin
from
.views
import
HomePage
from
.views
import
Ingredients_ListView
from
.views
import
Ingredients_DetailView
from
.views
import
Ingredients_UpdateFormView
...
...
@@ -20,8 +22,8 @@ from .views import Orders_CreateFormView
urlpatterns
=
[
path
(
''
,
H
eroesView
.
as_view
(),
name
=
'froyo'
),
path
(
'froyo/'
,
H
eroesView
.
as_view
(),
name
=
'heroes'
),
path
(
''
,
H
omePage
.
as_view
(),
name
=
'froyo'
),
path
(
'froyo/'
,
H
omePage
.
as_view
(),
name
=
'heroes'
),
path
(
'froyo/ingredients/list/'
,
Ingredients_ListView
.
as_view
(),
name
=
'ingredients_list'
),
path
(
'froyo/ingredients/detail/'
,
Ingredients_DetailView
.
as_view
(),
name
=
'ingredients_detail'
),
...
...
froyo/views.py
View file @
20aec9c0
...
...
@@ -6,6 +6,9 @@ from django.shortcuts import render
# Create your views here.
class
HomePage
(
TemplateView
):
template_name
=
'froyo.html'
class
Ingredients_ListView
(
TemplateView
):
template_name
=
'ingredients_list.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