Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-02-16 12:34:42 +01:00
parent fdd4f61d0f
commit 849571292c
2 changed files with 5 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
uploadoptions['title'] = title
url = "http://localhost:8000/rowers/workout/api/upload/"
url = settings.UPLOAD_SERVICE_URL
if not testing:
response = requests.post(url,data=uploadoptions)
if response.status_code == 200:

View File

@@ -247,6 +247,10 @@ LOGOUT_REDIRECT_URL = '/'
# Update Cache with task progress password
PROGRESS_CACHE_SECRET = CFG['progress_cache_secret']
try:
UPLOAD_SERVICE_URL = CFG['upload_service_url']
except KeyError:
UPLOAD_SERVICE_URL = "http://localhost:8000/rowers/workout/api/upload/"
try:
UPLOAD_SERVICE_SECRET = CFG['upload_service_secret']
except KeyError: