Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
Overview
Overview
Details
Activity
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
edx
edx-video-pipeline
Commits
85e77f11
Commit
85e77f11
authored
Dec 07, 2017
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add service variant name
parent
f579279e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
.gitignore
+3
-0
VEDA/settings/production.py
+4
-2
No files found.
.gitignore
View file @
85e77f11
...
...
@@ -18,3 +18,6 @@ reports/
VEDA/settings/private.py
youtube_callback/static_files/youtubekey
### VisualStudioCode ###
.vscode/*
VEDA/settings/production.py
View file @
85e77f11
...
...
@@ -7,16 +7,18 @@ from VEDA.settings.utils import get_logger_config
DEBUG
=
False
TEMPLATE_DEBUG
=
DEBUG
DEFATULT_SERVICE_VARIANT_NAME
=
'video-pipeline'
ALLOWED_HOSTS
=
[
'*'
]
LOGGING
=
get_logger_config
()
CONFIG_DATA
=
get_config
()
LOGGING
=
get_logger_config
(
service_variant
=
CONFIG_DATA
.
get
(
'SERVICE_VARIANT_NAME'
,
DEFATULT_SERVICE_VARIANT_NAME
))
# Keep track of the names of settings that represent dicts. Instead of overriding the values in base.py,
# the values read from disk should UPDATE the pre-configured dicts.
DICT_UPDATE_KEYS
=
(
'DATABASES'
,
'JWT_AUTH'
)
CONFIG_DATA
=
get_config
()
# Remove the items that should be used to update dicts, and apply them separately rather
# than pumping them into the local vars.
dict_updates
=
{
key
:
CONFIG_DATA
.
pop
(
key
,
None
)
for
key
in
DICT_UPDATE_KEYS
}
...
...
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