Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
carlosoarde_reading
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
Carlos Gabriel Oarde
carlosoarde_reading
Commits
c35a328b
Commit
c35a328b
authored
Mar 27, 2023
by
KaoruSawade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited project settings to use dotenv
parent
4fb3c5e2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
1 deletion
+4
-1
__init__.cpython-311.pyc
.../carlosoarde_reading/__pycache__/__init__.cpython-311.pyc
+0
-0
settings.cpython-311.pyc
.../carlosoarde_reading/__pycache__/settings.cpython-311.pyc
+0
-0
urls.cpython-311.pyc
...ding/carlosoarde_reading/__pycache__/urls.cpython-311.pyc
+0
-0
wsgi.cpython-311.pyc
...ding/carlosoarde_reading/__pycache__/wsgi.cpython-311.pyc
+0
-0
settings.py
carlosoarde_reading/carlosoarde_reading/settings.py
+4
-1
db.sqlite3
carlosoarde_reading/db.sqlite3
+0
-0
No files found.
carlosoarde_reading/carlosoarde_reading/__pycache__/__init__.cpython-311.pyc
0 → 100644
View file @
c35a328b
File added
carlosoarde_reading/carlosoarde_reading/__pycache__/settings.cpython-311.pyc
0 → 100644
View file @
c35a328b
File added
carlosoarde_reading/carlosoarde_reading/__pycache__/urls.cpython-311.pyc
0 → 100644
View file @
c35a328b
File added
carlosoarde_reading/carlosoarde_reading/__pycache__/wsgi.cpython-311.pyc
0 → 100644
View file @
c35a328b
File added
carlosoarde_reading/carlosoarde_reading/settings.py
View file @
c35a328b
...
@@ -10,7 +10,10 @@ For the full list of settings and their values, see
...
@@ -10,7 +10,10 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
"""
from
dotenv
import
load_dotenv
import
os
from
pathlib
import
Path
from
pathlib
import
Path
load_dotenv
()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
@@ -20,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
...
@@ -20,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'django-insecure-v)ei=y(&25b9f1@#@cn$f@_fig-@@(rt66_&s3*$gv-!e9w3=i'
SECRET_KEY
=
os
.
getenv
(
'SECRET_KEY'
)
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
DEBUG
=
True
...
...
carlosoarde_reading/db.sqlite3
0 → 100644
View file @
c35a328b
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