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 +```` 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})