Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LAB1
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
Julio Teodoro
LAB1
Commits
8d5a0d0e
Commit
8d5a0d0e
authored
Mar 10, 2020
by
jiroto26
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited url.py, made a template folder, and edited views.py
parent
5288ebb4
Pipeline
#949
canceled with stages
Changes
10
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
0 deletions
+27
-0
cloud.png
heroes/templates/cloud.png
+0
-0
detail_cloud.html
heroes/templates/detail_cloud.html
+0
-0
detail_jester.html
heroes/templates/detail_jester.html
+0
-0
detail_sunflowey.html
heroes/templates/detail_sunflowey.html
+0
-0
jester.png
heroes/templates/jester.png
+0
-0
page.html
heroes/templates/page.html
+1
-0
sunflowey.png
heroes/templates/sunflowey.png
+0
-0
urls.py
heroes/urls.py
+14
-0
views.py
heroes/views.py
+11
-0
urls.py
willowisp/willowisp/urls.py
+1
-0
No files found.
heroes/cloud.png
→
heroes/
templates/
cloud.png
View file @
8d5a0d0e
File moved
heroes/detail_cloud.html
→
heroes/
templates/
detail_cloud.html
View file @
8d5a0d0e
File moved
heroes/detail_jester.html
→
heroes/
templates/
detail_jester.html
View file @
8d5a0d0e
File moved
heroes/detail_sunflowey.html
→
heroes/
templates/
detail_sunflowey.html
View file @
8d5a0d0e
File moved
heroes/jester.png
→
heroes/
templates/
jester.png
View file @
8d5a0d0e
File moved
heroes/templates/page.html
0 → 100644
View file @
8d5a0d0e
<html></html>
\ No newline at end of file
heroes/sunflowey.png
→
heroes/
templates/
sunflowey.png
View file @
8d5a0d0e
File moved
heroes/urls.py
0 → 100644
View file @
8d5a0d0e
from
django.conf.urls
import
url
from
django.contrib
import
admin
from
.views
import
HeroesView
,
HeroCloud
,
HeroSunflowey
,
HeroJester
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^heroes$'
,
HeroesView
.
as_view
(),
name
=
'heroes'
),
url
(
r'^hero/cloud$'
,
HeroCloud
.
as_view
(),
name
=
'hero/cloud'
),
url
(
r'^hero/sunflowey$'
,
HeroSunflowey
.
as_view
(),
name
=
'hero/sunflowey'
),
url
(
r'^hero/jester$'
,
HeroJester
.
as_view
(),
name
=
'hero/jester'
),
]
\ No newline at end of file
heroes/views.py
View file @
8d5a0d0e
from
django.shortcuts
import
render
class
HeroesView
(
TemplateView
):
template_name
=
"page.html"
class
HeroCloud
(
TemplateView
):
template_name
=
"detail_cloud.html"
class
HeroSunflowey
(
TemplateView
):
template_name
=
"detail_sunflowey.html"
class
HeroJester
(
TemplateView
):
template_name
=
"detail_jester.html"
# Create your views here.
willowisp/willowisp/urls.py
View file @
8d5a0d0e
...
...
@@ -18,4 +18,5 @@ from django.contrib import admin
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r''
,
include
(
'heroes.urls'
)),
]
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