Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
38417e23
Commit
38417e23
authored
Oct 07, 2018
by
Paul R Otto
Browse files
Added simple about page. Next need to get ReactJS script running on it.
parent
ccceb178
Pipeline
#3156
passed with stage
in 57 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
go/go_ahead/templates/about.html
0 → 100644
View file @
38417e23
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
<meta
name=
"theme-color"
content=
"#006633"
/>
<meta
name=
"description"
content=
"University-branded URL shortening"
/>
<title>
•
SRCT Go About
</title>
</head>
<body>
<!-- React injects itself here -->
<div
id=
"root"
></div>
</body>
Bare About page. ReactJS script will be inserted.
<!--
<script src="static/about.js"></script>
-->
</html>
go/go_ahead/urls.py
View file @
38417e23
...
...
@@ -3,4 +3,6 @@ from . import views
urlpatterns
=
[
path
(
''
,
views
.
index
),
path
(
'about/'
,
views
.
about
),
]
go/go_ahead/views.py
View file @
38417e23
...
...
@@ -2,3 +2,6 @@ from django.shortcuts import render
def
index
(
request
):
return
render
(
request
,
'index.html'
)
def
about
(
request
):
return
render
(
request
,
'about.html'
)
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