django site urls whose are not under site-packages -


lets assume have django website svn directory not under site-packages. whenever run:

mysyper_dir/whatever_module/manage.py runserver 0.0.0.0:8888 

and connect, realize request still handled python files in:

....../site-packages/whatever_module/ 

while can see prints of

mysyper_dir/whatever_module/setting.py 

from server console. there way tell django that, every "non-framework" files ever need in "mysyper_dir/whatever_module" directory ?

neither of these django specific (python handles this) there's couple of things do. set environment variable pythonpath, or add directories sys.path. can find more modules located here.

if looking have things just apply django, adding sys.path might best bet. try weird modifying manage.py , adding command line arguments after #!/usr/bin/env python that's uncharted territory me.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -