Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esguerra_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
James Esguerra
esguerra_lab1
Commits
fde50e5a
Commit
fde50e5a
authored
Mar 16, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added templates folder and base template
parent
0cb83cc1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
base.html
templates/base.html
+37
-0
settings.cpython-38.pyc
website/__pycache__/settings.cpython-38.pyc
+0
-0
settings.py
website/settings.py
+2
-1
No files found.
templates/base.html
0 → 100644
View file @
fde50e5a
<!-- base html template -->
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
{% block title %} {% endblock %}
</title>
</head>
<body>
<header>
<div
id=
'page-header'
>
{% block header %} {% endblock %}
</div>
<div
id=
'navbar'
>
<div>
<a
href=
'/home'
>
Home
</a>
</div>
<div>
<a
href=
'/profile'
>
Profile
</a>
</div>
<div>
<a
href=
'/profile'
>
Key
</a>
</div>
<div>
<a
href=
'/profile'
>
This Week
</a>
</div>
<div>
<a
href=
'/profile'
>
Today
</a>
</div>
</div>
</header>
<div
id=
'content'
>
{% block content %} {% endblock %}
</div>
</body>
</html>
website/__pycache__/settings.cpython-38.pyc
View file @
fde50e5a
No preview for this file type
website/settings.py
View file @
fde50e5a
...
@@ -10,6 +10,7 @@ For the full list of settings and their values, see
...
@@ -10,6 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
"""
import
os
from
pathlib
import
Path
from
pathlib
import
Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# Build paths inside the project like this: BASE_DIR / 'subdir'.
...
@@ -55,7 +56,7 @@ ROOT_URLCONF = 'website.urls'
...
@@ -55,7 +56,7 @@ ROOT_URLCONF = 'website.urls'
TEMPLATES
=
[
TEMPLATES
=
[
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
'context_processors'
:
[
'context_processors'
:
[
...
...
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