Skip to content

Commit 6131e14

Browse files
committed
Release v1.0.3
1 parent 703dcb8 commit 6131e14

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [1.0.3] 2024-01-05
4+
### Changes
5+
6+
- Update Settings:
7+
- local static
8+
- local templates
9+
310
## [1.0.2] 2023-06-13
411
### Changes
512

core/settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@
6363

6464
ROOT_URLCONF = "core.urls"
6565

66+
UI_TEMPLATES = os.path.join(BASE_DIR, 'templates')
67+
6668
TEMPLATES = [
6769
{
6870
"BACKEND": "django.template.backends.django.DjangoTemplates",
69-
"DIRS": [],
71+
"DIRS": [UI_TEMPLATES],
7072
"APP_DIRS": True,
7173
"OPTIONS": {
7274
"context_processors": [
@@ -148,6 +150,10 @@
148150
STATIC_URL = '/static/'
149151
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
150152

153+
STATICFILES_DIRS = (
154+
os.path.join(BASE_DIR, 'static'),
155+
)
156+
151157
#if not DEBUG:
152158
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
153159

static/assets/img/logo-ct-dark.png

6.79 KB
Loading

static/assets/img/logo-ct.png

5.62 KB
Loading

templates/includes/sidebar.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% load static %}
2+
3+
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-0 border-radius-xl my-3 fixed-start ms-3 bg-gradient-dark" id="sidenav-main">
4+
<div class="sidenav-header">
5+
<i class="fas fa-times p-3 cursor-pointer text-white opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i>
6+
<a class="navbar-brand m-0" href="/">
7+
<img src="{% static 'assets/img/logo-ct.png' %}" class="navbar-brand-img h-100" alt="main_logo">
8+
<span class="ms-1 font-weight-bold text-white">Your BRAND</span>
9+
</a>
10+
</div>
11+
<hr class="horizontal light mt-0 mb-2">
12+
<div class="collapse navbar-collapse w-auto h-auto" id="sidenav-collapse-main">
13+
{% include 'includes/menu-list.html' %}
14+
</div>
15+
</aside>

0 commit comments

Comments
 (0)