Using GET and POST to add data to a database in Django
<p>I am working on a project that will have a raspberry PI collect data from a set of sensors and then send the data to a django server.</p>

<p>I need the server to then take that data and add it to a database and perform ARIMA time series forecasting on the updated dataset every x seconds after a number of new entries are added. </p>

<p>Can I use POST in the raspberry PI program to <strong>send</strong> the data to that url, and then use GET in a django view to <strong>add</strong> the incoming data into a database?  </p>

<p>you can use <strong>urllib</strong> module or <strong>requests</strong> module in python to send POST request to your Django server. </p>

<p>And you can have Django view to respond to that POST request. Inside this view, you can have method to add the data which sent from your Raspberry Pi program into your database which is at the Django server side.</p>

<p>Therefore you don't need another GET method to deal with adding data into the database in this case. </p>

python django raspberry-pi