Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40Lab1
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
Xavier Calabia
CSCI40Lab1
Commits
30c0357f
Commit
30c0357f
authored
Mar 07, 2020
by
Xavier Calabia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home page now renders, nothing in it yet
parent
ccbfc173
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
heroes.html
heroes/templates/heroes.html
+3
-0
urls.py
heroes/urls.py
+6
-0
views.py
heroes/views.py
+3
-1
urls.py
willowisp/willowisp/urls.py
+2
-1
No files found.
heroes/templates/heroes.html
0 → 100644
View file @
30c0357f
<html>
<
<
title
>
The Will of the Wisps Wiki
</title>
</html>
heroes/urls.py
0 → 100644
View file @
30c0357f
from
django.conf.urls
import
url
from
.views
import
home_page
urlpatterns
=
[
url
(
r'$'
,
home_page
,
name
=
'home_page'
),
]
heroes/views.py
View file @
30c0357f
# Create your views here.
from
django.shortcuts
import
render
from
django.shortcuts
import
render
# Create your views here.
def
home_page
(
request
):
return
render
(
request
,
'heroes.html'
)
willowisp/willowisp/urls.py
View file @
30c0357f
...
@@ -13,9 +13,10 @@ Including another URLconf
...
@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
"""
from
django.conf.urls
import
url
from
django.conf.urls
import
include
,
url
from
django.contrib
import
admin
from
django.contrib
import
admin
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
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