Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Site Interludes
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediatek
Site Interludes
Commits
34ab025d
Commit
34ab025d
authored
4 years ago
by
Dorian Lesbre
Browse files
Options
Downloads
Patches
Plain Diff
Added a basic HTML view
parent
978d6c65
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
interludes/settings.py
+1
-1
1 addition, 1 deletion
interludes/settings.py
interludes/templates/home.html
+9
-0
9 additions, 0 deletions
interludes/templates/home.html
interludes/urls.py
+2
-0
2 additions, 0 deletions
interludes/urls.py
interludes/views.py
+4
-0
4 additions, 0 deletions
interludes/views.py
with
16 additions
and
1 deletion
interludes/settings.py
+
1
−
1
View file @
34ab025d
...
...
@@ -54,7 +54,7 @@ ROOT_URLCONF = 'interludes.urls'
TEMPLATES
=
[
{
'
BACKEND
'
:
'
django.template.backends.django.DjangoTemplates
'
,
'
DIRS
'
:
[],
'
DIRS
'
:
[
os
.
path
.
join
(
BASE_DIR
,
'
interludes
'
,
'
templates
'
)
],
'
APP_DIRS
'
:
True
,
'
OPTIONS
'
:
{
'
context_processors
'
:
[
...
...
This diff is collapsed.
Click to expand it.
interludes/templates/home.html
0 → 100644
+
9
−
0
View file @
34ab025d
<html>
<head>
<title>
Site title
</title>
</head>
<body>
<p>
a paragraph
</p>
<p>
another paragraph
</p>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
interludes/urls.py
+
2
−
0
View file @
34ab025d
...
...
@@ -15,7 +15,9 @@ Including another URLconf
"""
from
django.contrib
import
admin
from
django.urls
import
path
from
interludes
import
views
urlpatterns
=
[
path
(
'
admin/
'
,
admin
.
site
.
urls
),
path
(
''
,
views
.
home
,
name
=
'
home
'
)
]
This diff is collapsed.
Click to expand it.
interludes/views.py
0 → 100644
+
4
−
0
View file @
34ab025d
from
django.shortcuts
import
render
def
home
(
request
):
return
render
(
request
,
'
home.html
'
,
{})
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment