From 1fb867d60ed381c2a7f5f58227e26e39956722e9 Mon Sep 17 00:00:00 2001 From: Subramanya c Date: Tue, 8 Oct 2019 22:24:55 -0700 Subject: [PATCH 1/2] Update views.py --- navicApp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navicApp/views.py b/navicApp/views.py index d296b53..2de2eaf 100644 --- a/navicApp/views.py +++ b/navicApp/views.py @@ -8,6 +8,6 @@ @csrf_exempt def getData(request): - if request.method == 'GET': + if request.method == 'POST': data = dataServe.getdata() return render(request, 'index.html',{"r":data}) From 2ffe9d37bdc8331c167c70192148e57d1aa74c3e Mon Sep 17 00:00:00 2001 From: Subramanya c Date: Tue, 8 Oct 2019 22:27:49 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 77c0826..c71fe8b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # UDPsocketDjango please create virtual env + + +#### to run the program +```` +python manage.py runserver +````