fixed
This commit is contained in:
@@ -95,7 +95,7 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False):
|
|||||||
uploadoptions['title'] = title
|
uploadoptions['title'] = title
|
||||||
|
|
||||||
|
|
||||||
url = "http://localhost:8000/rowers/workout/api/upload/"
|
url = settings.UPLOAD_SERVICE_URL
|
||||||
if not testing:
|
if not testing:
|
||||||
response = requests.post(url,data=uploadoptions)
|
response = requests.post(url,data=uploadoptions)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
|
|||||||
@@ -247,6 +247,10 @@ LOGOUT_REDIRECT_URL = '/'
|
|||||||
# Update Cache with task progress password
|
# Update Cache with task progress password
|
||||||
|
|
||||||
PROGRESS_CACHE_SECRET = CFG['progress_cache_secret']
|
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:
|
try:
|
||||||
UPLOAD_SERVICE_SECRET = CFG['upload_service_secret']
|
UPLOAD_SERVICE_SECRET = CFG['upload_service_secret']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
Reference in New Issue
Block a user