Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python module in django not imported correctly

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)

like image 953
el.severo Avatar asked Jun 02 '13 23:06

el.severo


1 Answers

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/.

like image 124
Devyn Collier Johnson Avatar answered Oct 02 '22 00:10

Devyn Collier Johnson