Private
Public Access
1
0

site_url in non django way

This commit is contained in:
Sander Roosendaal
2017-11-01 23:09:50 +01:00
parent 59fc248925
commit a08861b17b

View File

@@ -11,7 +11,8 @@ redis_connection = StrictRedis()
import redis
import threading
import requests
from django.conf import settings
from rowsandall_app.settings import SITE_URL
def getvalue(data):
perc = 0
@@ -72,10 +73,11 @@ def longtask2(aantal,jobid=None,debug=False):
if debug:
print progress
if jobid != None:
url = settings.SITE_URL+"/rowers/record-progress/"
url = SITE_URL+"/rowers/record-progress/"
url += str(progress)+"/"+jobid
s = requests.get(url)
if debug:
print url
print s