Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 25
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
Andre Matthew Dumandan
widget_group 25
Commits
9abe24af
Commit
9abe24af
authored
Mar 08, 2022
by
Alia Lawraine Olay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added value of secret key in .env
parent
86ca8dc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
.env
widget_group_25/.env
+1
-2
settings.cpython-310.pyc
...p_25/widget_group_25/__pycache__/settings.cpython-310.pyc
+0
-0
settings.py
widget_group_25/widget_group_25/settings.py
+3
-4
No files found.
widget_group_25/.env
View file @
9abe24af
SECRET_KEY='<value of the secret key in settings.py>'
STATIC_ROOT='<folder path of where static items>'
\ No newline at end of file
SECRET_KEY='django-insecure-9lh6i_8o%+1ti#bh2cscs(g4p7vkzo$$wzsr&usgmo!q=6f9#r'
\ No newline at end of file
widget_group_25/widget_group_25/__pycache__/settings.cpython-310.pyc
View file @
9abe24af
No preview for this file type
widget_group_25/widget_group_25/settings.py
View file @
9abe24af
...
...
@@ -9,11 +9,10 @@ https://docs.djangoproject.com/en/4.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""
import
os
from
pathlib
import
Path
# put this in the imports part of settings.py (from Lecture 7)
from
dotenv
import
load_dotenv
load_dotenv
()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
...
...
@@ -24,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'django-insecure-9lh6i_8o
%+1
ti#bh2cscs(g4p7vkzo$$wzsr&usgmo!q=6f9#r'
SECRET_KEY
=
os
.
getenv
(
'SECRET_KEY'
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
...
...
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