I am writing a web based app based on python and django. I have a source code folder containing LIBS directory that has a file named utils.py. When I want to install my app a new line is added to ~/.profile file like export PYTHONPATH=$PYTHONPATH:/home/test/src/LIBS (The path is added based on the installation path) When I run the below code in the interpreter the path is OK:
import sys
sys.path
['', '/usr/lib/python2.7', '/home/test/src/LIBS', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/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/pymodules/python2.7']
Unfortunately, when i want to load the home page of my app the line that imports utils raises an exception
What i do wrong? Thanks in advanced.