Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
2e2602ff
Commit
2e2602ff
authored
Nov 28, 2018
by
Lukas Burgey
Browse files
Add debug publishing flag
parent
d84890f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
example-config/home/feudal/config/django_settings.py
View file @
2e2602ff
...
...
@@ -8,7 +8,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEBUG
=
True
DEBUG_AUTH
=
False
DEBUG_CREDENTIALS
=
False
DEBUG_PUBLISHING
=
False
DEBUG_CREDENTIALS
=
True
ALLOWED_HOSTS
=
[
'hdf-portal-dev.data.kit.edu'
,
...
...
feudal/backend/models/deployments.py
View file @
2e2602ff
...
...
@@ -166,7 +166,8 @@ class Deployment(PolymorphicModel):
self
.
publish
()
def
publish_to_client
(
self
):
LOGGER
.
debug
(
self
.
msg
(
'publish_to_client'
))
if
settings
.
DEBUG_PUBLISHING
:
LOGGER
.
debug
(
self
.
msg
(
'publish_to_client'
))
from
.serializers
import
clients
data
=
clients
.
DeploymentSerializer
(
self
).
data
...
...
@@ -182,7 +183,8 @@ class Deployment(PolymorphicModel):
if
self
.
user
is
None
:
return
LOGGER
.
debug
(
self
.
msg
(
'publish_to_user'
))
if
settings
.
DEBUG_PUBLISHING
:
LOGGER
.
debug
(
self
.
msg
(
'publish_to_user'
))
from
.
import
serializers
msg
=
dumps
({
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment