The host for my jango project does not allow me to put my libraries in python. Before that, I just threw packages into the root of the project, but now it comes to the release and I would like to put all this in a separate libs folder and add it to sys.path.

On the combat server, you can write the path to the wsgi file. But for development I use the built-in server (manage.py runserver).

The question is, in fact, where to write this addition, so that it runs regardless of the server used?

I tried:

project/settings.py project/__init__.py 

does not work

Ps. Things are even worse in the traceback in pyton_path is my path but all the same import error

 Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.3.4 Exception Type: ViewDoesNotExist Exception Value: Could not import building.views. Error was: No module named pisa.ho Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py in _get_callback, line 167 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/home/butek/git/ucrm/lib', '/home/butek/git/ucrm', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol'] 

the library is in the '/ home / butek / git / ucrm / lib' folder

    1 answer 1

    Sorry there was an error in the library import code. The question is removed.

    Ps. The path added to project / init. .Py seems to work