Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
levenshtein-distance-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schereme
levenshtein-distance-service
Commits
e9c879fc
Commit
e9c879fc
authored
1 year ago
by
Maxim Scheremetjew
Browse files
Options
Downloads
Patches
Plain Diff
chore(settings): Move SECRET_KEY and DEBUG value to env vars.
parent
bdfcd59c
No related branches found
No related tags found
1 merge request
!5
chore(settings): Move SECRET_KEY and DEBUG value to env vars.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+2
-0
2 additions, 0 deletions
docker-compose.yml
webapp/settings.py
+2
-2
2 additions, 2 deletions
webapp/settings.py
with
4 additions
and
2 deletions
docker-compose.yml
+
2
−
0
View file @
e9c879fc
...
...
@@ -15,6 +15,8 @@ services:
networks
:
-
microservices
environment
:
-
DEBUG=true
-
SECRET_KEY=blahe9w5c92)o5x%!awwfhduln=06xl%u_*(x%)_7s9y3v3f971tek
# Logging
-
CONSOLE_LOGGING_HANDLER_MIN_LEVEL=DEBUG
-
CUSTOM_LOGGING
...
...
This diff is collapsed.
Click to expand it.
webapp/settings.py
+
2
−
2
View file @
e9c879fc
...
...
@@ -26,10 +26,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
"
django-insecure-v0^6_+1bnh9wswkfe%8*dbo#*-#m#q5p!tny_uf-@s06o=e@&3
"
SECRET_KEY
=
env
.
str
(
"
SECRET_KEY
"
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
DEBUG
=
env
.
bool
(
"
DEBUG
"
,
default
=
False
)
# The logging must to be the first thing to configure to get the logs raised here
LOGGING
=
get_logging_config
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment