File tree 7 files changed +21
-16
lines changed 7 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 5
5
6
6
DEBUG = True
7
7
DJANGO_ENVIRONMENT = " local"
8
- SECRET_KEY = " K5tRjVxP9qCwZ2gH8sN6mT3dF7aK1pW4eX7yV9uL6kG3jB2tR8qE5zA1rC "
8
+ SECRET_KEY = " "
9
9
10
10
# Update this with the actual base URL of your application
11
- BASE_URL = ' http://127.0.0.1:8000'
11
+ BASE_URL = ' http://127.0.0.1:8000'
Original file line number Diff line number Diff line change 5
5
6
6
DEBUG = False
7
7
DJANGO_ENVIRONMENT = " production"
8
- SECRET_KEY = " K5tRjVxP9qCwZ2gH8sN6mT3dF7aK1pW4eX7yV9uL6kG3jB2tR8qE5zA1rC "
8
+ SECRET_KEY = " "
9
9
10
10
# Update this with the actual base URL of your application
11
- BASE_URL = ' https://your-production-url'
11
+ BASE_URL = ' https://your-production-url'
Original file line number Diff line number Diff line change 6
6
{% block title %}Typography - UI elements{% endblock %}
7
7
8
8
{% block content %}
9
- < h4 class ="py-3 mb-4 ">
10
- {% translate "Typography" %}
11
- </ h4 >
9
+ < h4 class ="py-3 mb-4 "> "Typography"</ h4 >
12
10
13
11
< div class ="row ">
14
12
<!-- Headings -->
Original file line number Diff line number Diff line change 10
10
https://docs.djangoproject.com/en/5.0/ref/settings/
11
11
"""
12
12
import os
13
+ import random
14
+ import string
13
15
from pathlib import Path
14
16
15
17
from dotenv import load_dotenv
24
26
# Quick-start development settings - unsuitable for production
25
27
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
26
28
29
+ # Update secret key in .env file and .env.prod file
30
+ # SECRET_KEY = os.environ.get("SECRET_KEY", default='')
27
31
28
32
# SECURITY WARNING: keep the secret key used in production secret!
29
- SECRET_KEY = os .environ .get ("SECRET_KEY" , default = '' )
33
+ # If using the .env file for SECRET_KEY then comment below random SECRET_KEY generation code.
34
+ SECRET_KEY = os .environ .get ("SECRET_KEY" )
35
+ if not SECRET_KEY :
36
+ SECRET_KEY = "" .join (random .choice (string .ascii_lowercase ) for i in range (32 ))
30
37
31
38
32
39
# SECURITY WARNING: don't run with debug turned on in production!
175
182
176
183
177
184
# Your stuff...
178
- # ------------------------------------------------------------------------------
185
+ # ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 16
16
< link rel ="shortcut icon " type ="image/x-icon " href ="{% static 'img/favicon/favicon.ico' %} " />
17
17
18
18
<!-- Include the styles partial -->
19
- {% include is_front|yesno:"./partials/styles_front.html, ./partials/styles.html" %}
19
+ {% include " ./partials/styles.html" %}
20
20
21
21
{% block vendor_css %}{% endblock vendor_css %}
22
22
25
25
26
26
27
27
<!-- Include the scripts partial (required ) -->
28
- {% include is_front|yesno:"./partials/scripts_includes_front.html, ./partials/scripts_includes.html" %}
28
+ {% include " ./partials/scripts_includes.html" %}
29
29
30
30
</ head >
31
31
35
35
{% block layout %}
36
36
{% endblock layout %}
37
37
38
- {% include is_front|yesno:"./partials/scripts_front.html, ./partials/scripts.html" %}
38
+ {% include " ./partials/scripts.html" %}
39
39
40
40
<!--Vendors Javascript-->
41
41
{% block vendor_js %} {% endblock vendor_js %}
Original file line number Diff line number Diff line change 199
199
< div class ="text-truncate " data-i18n ="Authentications "> Authentications</ div >
200
200
</ a >
201
201
< ul class ="menu-sub ">
202
- < li class ="menu-item {% if '/login_basic /' in request.path %}active{% endif %} ">
202
+ < li class ="menu-item {% if '/login /' in request.path %}active{% endif %} ">
203
203
< a href ="{% url 'auth-login-basic' %} " class ="menu-link " target ="_blank ">
204
204
< div class ="text-truncate " data-i18n ="Login "> Login</ div >
205
205
</ a >
206
206
</ li >
207
- < li class ="menu-item {% if '/register_basic /' in request.path %}active{% endif %} ">
207
+ < li class ="menu-item {% if '/register /' in request.path %}active{% endif %} ">
208
208
< a href ="{% url 'auth-register-basic' %} " class ="menu-link " target ="_blank ">
209
209
< div class ="text-truncate " data-i18n ="Register "> Register</ div >
210
210
</ a >
211
211
</ li >
212
- < li class ="menu-item {% if '/forgot_password_basic /' in request.path %}active{% endif %} ">
212
+ < li class ="menu-item {% if '/forgot_password /' in request.path %}active{% endif %} ">
213
213
< a href ="{% url 'auth-forgot-password-basic' %} " class ="menu-link " target ="_blank ">
214
214
< div class ="text-truncate " data-i18n ="Frogot Password "> Frogot Password</ div >
215
215
</ a >
Original file line number Diff line number Diff line change 4
4
5
5
< nav class ="layout-navbar {{container_class}} navbar navbar-expand-xl navbar-detached align-items-center bg-navbar-theme " id ="layout-navbar ">
6
6
{% if not navbar_hide_toggle %}
7
- < div class ="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 {{ menu_horizontal|yesno:' d-xl-none,' }} {{ content_navbar|yesno:'d-xl-none,' }} ">
7
+ < div class ="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none ">
8
8
< a class ="nav-item nav-link px-0 me-xl-4 " href ="javascript:void(0) ">
9
9
< i class ="bx bx-menu bx-sm "> </ i >
10
10
</ a >
You can’t perform that action at this time.
0 commit comments