Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40_Lab01_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
Ana Gabrielle S. Caligagan
CSCI40_Lab01_Willowisp
Commits
1b849e31
Commit
1b849e31
authored
Mar 07, 2020
by
Ana Gabrielle S. Caligagan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Editing tests.py
parent
8414e41b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
urls.cpython-37.pyc
heroes/__pycache__/urls.cpython-37.pyc
+0
-0
views.cpython-37.pyc
heroes/__pycache__/views.cpython-37.pyc
+0
-0
urls.py
heroes/urls.py
+5
-5
views.py
heroes/views.py
+6
-5
urls.cpython-37.pyc
willowisp/__pycache__/urls.cpython-37.pyc
+0
-0
No files found.
heroes/__pycache__/urls.cpython-37.pyc
View file @
1b849e31
No preview for this file type
heroes/__pycache__/views.cpython-37.pyc
View file @
1b849e31
No preview for this file type
heroes/urls.py
View file @
1b849e31
from
django.conf.urls
import
url
from
.views
import
Home
ListView
,
CloudDetailView
,
JesterDetailView
,
SunfloweyDetail
View
from
.views
import
Home
TemplateView
,
CloudTemplateView
,
JesterTemplateView
,
SunfloweyTemplate
View
urlpatterns
=
[
url
(
r'^$'
,
Home
List
View
.
as_view
(),
name
=
'home'
),
url
(
r'^hero/cloud/$'
,
Cloud
Detail
View
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^hero/jester/$'
,
Jester
Detail
View
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^hero/sunflowey/$'
,
Sunflowey
Detail
View
.
as_view
(),
name
=
'detail_sunflowey'
),
url
(
r'^$'
,
Home
Template
View
.
as_view
(),
name
=
'home'
),
url
(
r'^hero/cloud/$'
,
Cloud
Template
View
.
as_view
(),
name
=
'detail_cloud'
),
url
(
r'^hero/jester/$'
,
Jester
Template
View
.
as_view
(),
name
=
'detail_jester'
),
url
(
r'^hero/sunflowey/$'
,
Sunflowey
Template
View
.
as_view
(),
name
=
'detail_sunflowey'
),
]
heroes/views.py
View file @
1b849e31
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
from
django.views.generic.base
import
TemplateView
from
django.views.generic.list
import
ListView
#from django.views.generic.list import ListView
#from django.views.generic.detail import DetailView
# Create your views here.
class
Home
List
View
(
TemplateView
):
class
Home
Template
View
(
TemplateView
):
template_name
=
'home.html'
class
Cloud
Detail
View
(
TemplateView
):
class
Cloud
Template
View
(
TemplateView
):
template_name
=
'detail_cloud.html'
class
Jester
Detail
View
(
TemplateView
):
class
Jester
Template
View
(
TemplateView
):
template_name
=
'detail_jester.html'
class
Sunflowey
Detail
View
(
TemplateView
):
class
Sunflowey
Template
View
(
TemplateView
):
template_name
=
'detail_sunflowey.html'
\ No newline at end of file
willowisp/__pycache__/urls.cpython-37.pyc
View file @
1b849e31
No preview for this file type
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