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

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -