While trying to use the RPi python module installed on RaspberryPi, using it in one of my request definition in views.py I get
Module not imported correctly!
This is the traceback that I got. Note that I'm using this repo as a starting point.
What would be the right way to install RPi and use it properly in Django ? I need RPi because of my motion sensor, using this tutorial as a starting point for motion sensor but want to integrate it to a django view (page)
After downloading the module, uncompress and unpack the downloaded file. Then, run the command "python setup.py install". This documentation on installing modules may be useful http://docs.python.org/2/install/.
As far as using the module with Django, I cannot really help with that. This page may help: https://docs.djangoproject.com/en/dev/intro/reusable-apps/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With