Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lab-1-wang-alec-185292-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
Alec
lab-1-wang-alec-185292-willowisp
Commits
1be59a33
Commit
1be59a33
authored
Mar 07, 2020
by
Alec Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed homepage to redirect to heroes directory
parent
3e74c1f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
urls.cpython-38.pyc
heroes/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
heroes/__pycache__/views.cpython-38.pyc
+0
-0
urls.py
heroes/urls.py
+1
-1
views.py
heroes/views.py
+2
-2
No files found.
heroes/__pycache__/urls.cpython-38.pyc
View file @
1be59a33
No preview for this file type
heroes/__pycache__/views.cpython-38.pyc
View file @
1be59a33
No preview for this file type
heroes/urls.py
View file @
1be59a33
...
@@ -4,7 +4,7 @@ from django.conf.urls import include, url
...
@@ -4,7 +4,7 @@ from django.conf.urls import include, url
from
.views
import
*
from
.views
import
*
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^$'
,
h
eroes
,
name
=
"home_page"
),
url
(
r'^$'
,
h
ome_page
,
name
=
"home_page"
),
url
(
r'^heroes/$'
,
heroes
,
name
=
"heroes"
),
url
(
r'^heroes/$'
,
heroes
,
name
=
"heroes"
),
url
(
r'^hero/cloud$'
,
hero_cloud
,
name
=
"hero_cloud"
),
url
(
r'^hero/cloud$'
,
hero_cloud
,
name
=
"hero_cloud"
),
url
(
r'^hero/sunflowey$'
,
hero_sunflowey
,
name
=
"hero_sunflowey"
),
url
(
r'^hero/sunflowey$'
,
hero_sunflowey
,
name
=
"hero_sunflowey"
),
...
...
heroes/views.py
View file @
1be59a33
from
django.shortcuts
import
render
from
django.shortcuts
import
render
,
redirect
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
def
home_page
(
request
):
def
home_page
(
request
):
return
HttpResponse
(
'<html><title>The Will of the Wisps Wiki</title></html>
'
)
return
redirect
(
'heroes
'
)
def
heroes
(
request
):
def
heroes
(
request
):
...
...
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