View Single Post
Old 10-27-2013, 09:03 AM   #5
bibihoma
Junior Member
bibihoma began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2013
Device: kindle
Thanks, indeed reading AND applying the documentation helps. Sorry for having wasted your time... I will delete my above post above as it has nothing to do with the topic (and it is a shame for me)

Still one more question: the documentation mentions that we can run script with this syntax:
$ calibre-debug manage.py -- --runserver

I am not familiar at all with what calibre-debug, but it does NOT seem to be using the python installed packages. I have django installed on my python 2.7. and the django launch command is working fine (manage.py runserver).

However enclosing the django launch code in calibre-debug fails when trying to import the django package.
"Python function terminated unexpectedly
No module named django.core.management (Error Code: 1)"

Is it because calibre-debug is looking for packages in the calibre src folder only?
If so, is your advise to try copying django package in calibre src folder? or is there any option that can be activated to allow usage of installed python packages?

Thanks
bibihoma is offline   Reply With Quote