summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorprashantsinalkar2019-07-17 14:56:54 +0530
committerprashantsinalkar2019-07-17 14:56:54 +0530
commit76dcbadbf71febe93fb9d2ffd51b2f3ae54233a2 (patch)
tree13305a57d18f58d2f2e4df4477830523dc8012e7 /website
parentf48786b30a0077858a771a4223df7f3cdeed7d96 (diff)
downloadR_on_Cloud_Web_Interface-76dcbadbf71febe93fb9d2ffd51b2f3ae54233a2.tar.gz
R_on_Cloud_Web_Interface-76dcbadbf71febe93fb9d2ffd51b2f3ae54233a2.tar.bz2
R_on_Cloud_Web_Interface-76dcbadbf71febe93fb9d2ffd51b2f3ae54233a2.zip
added file select validation and varible for upload file api url
Diffstat (limited to 'website')
-rw-r--r--website/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/views.py b/website/views.py
index 8d63b28..f7864d1 100644
--- a/website/views.py
+++ b/website/views.py
@@ -3,11 +3,13 @@ from django.http import HttpResponse
from django.template import loader
import requests
import uuid
+from R_on_Cloud.config import (API_URL_UPLOAD)
def index(request):
context = {}
session_id = uuid.uuid4()
context['session_id'] = str(session_id)
+ context['api_url_upload'] = API_URL_UPLOAD
request.session['session_id'] = str(session_id)
template = loader.get_template('index.html')
return HttpResponse(template.render(context, request))