Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
403b1c14
Commit
403b1c14
authored
May 14, 2023
by
Jan Enzo Salvador
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the os.path.join(BASE_DIR, 'templates')
parent
af4641b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
settings.py
..._aguandhischipmunks/widget_aguandhischipmunks/settings.py
+3
-2
No files found.
widget_aguandhischipmunks/widget_aguandhischipmunks/settings.py
View file @
403b1c14
...
...
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from
pathlib
import
Path
import
os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
...
@@ -21,7 +22,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
from
decouple
import
config
SECRET_KEY
=
config
(
"SECRET_KEY"
)
SECRET_KEY
=
"django-insecure-z@+iegqn)^k4^=
%
rnr-$3*2+gy&7s1=
%
m$&
%
h!w_k
%
m*h+nl=&"
# SECURITY WARNING: don't run with debug turned on in production!
...
...
@@ -61,7 +62,7 @@ ROOT_URLCONF = "widget_aguandhischipmunks.urls"
TEMPLATES
=
[
{
"BACKEND"
:
"django.template.backends.django.DjangoTemplates"
,
"DIRS"
:
[],
"DIRS"
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
"APP_DIRS"
:
True
,
"OPTIONS"
:
{
"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