Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lab1-Willowisp
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
Patrick James Ong
Lab1-Willowisp
Commits
a241dd4c
Commit
a241dd4c
authored
Mar 07, 2020
by
Patrick James Ong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed file and fixed files according to rename
parent
ed1251d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
heroes.html
willowisp/heroes/templates/heroes.html
+1
-1
tests.py
willowisp/heroes/tests.py
+1
-1
urls.py
willowisp/heroes/urls.py
+1
-1
views.py
willowisp/heroes/views.py
+1
-1
No files found.
willowisp/heroes/templates/h
ome
.html
→
willowisp/heroes/templates/h
eroes
.html
View file @
a241dd4c
<html>
<html>
<head>
<head>
<title>
The Will of the Wisps Wiki
</title>
<title>
The Will of the Wisps Wiki
</title>
<h1>
The Will of the Wisps Wiki
<h1>
The Will of the Wisps Wiki
</h1>
</head>
</head>
<body>
<body>
...
...
willowisp/heroes/tests.py
View file @
a241dd4c
...
@@ -7,7 +7,7 @@ class HomePageTest(TestCase):
...
@@ -7,7 +7,7 @@ class HomePageTest(TestCase):
def
test_uses_home_template
(
self
):
def
test_uses_home_template
(
self
):
response
=
self
.
client
.
get
(
'/'
)
response
=
self
.
client
.
get
(
'/'
)
self
.
assertTemplateUsed
(
response
,
'h
ome
.html'
)
self
.
assertTemplateUsed
(
response
,
'h
eroes
.html'
)
class
CloudPageTest
(
TestCase
):
class
CloudPageTest
(
TestCase
):
...
...
willowisp/heroes/urls.py
View file @
a241dd4c
...
@@ -3,7 +3,7 @@ from django.conf.urls import url
...
@@ -3,7 +3,7 @@ from django.conf.urls import url
from
.views
import
HomeListView
,
CloudDetailView
,
JesterDetailView
,
SunfloweyDetailView
from
.views
import
HomeListView
,
CloudDetailView
,
JesterDetailView
,
SunfloweyDetailView
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^$'
,
HomeListView
.
as_view
(),
name
=
'h
ome
'
),
url
(
r'^$'
,
HomeListView
.
as_view
(),
name
=
'h
eroes
'
),
url
(
r'^hero/cloud/$'
,
CloudDetailView
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^hero/cloud/$'
,
CloudDetailView
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^hero/jester/$'
,
JesterDetailView
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^hero/jester/$'
,
JesterDetailView
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^hero/sunflowey/$'
,
SunfloweyDetailView
.
as_view
(),
name
=
'detail_sunflowey'
),
url
(
r'^hero/sunflowey/$'
,
SunfloweyDetailView
.
as_view
(),
name
=
'detail_sunflowey'
),
...
...
willowisp/heroes/views.py
View file @
a241dd4c
...
@@ -6,7 +6,7 @@ from django.views.generic.base import TemplateView
...
@@ -6,7 +6,7 @@ from django.views.generic.base import TemplateView
# Create your views here.
# Create your views here.
class
HomeListView
(
TemplateView
):
class
HomeListView
(
TemplateView
):
template_name
=
'h
ome
.html'
template_name
=
'h
eroes
.html'
class
CloudDetailView
(
TemplateView
):
class
CloudDetailView
(
TemplateView
):
...
...
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