Deploying Django/Gunicorn to Nginx server with Python 3.4 found the wrong path for templates -


not sure if question should in serverfault or stackoverflow think there more people here.

i have built django project called 'to_pm' , decided put on vps server uses centos 7 operating system. want deploy django project nginx server have setup , running on server.

originally put project /root/ newbie of linux system administration. realized nginx using nginx user , needs owner of project folder , parent directories access project's static contents moved project /www/ , change owner of /www/ nginx:nginx. unable access website.

i error:(all templates in to_pm/templates/ folder)

django tried loading these templates, in order: using loader django_jinja.loaders.filesystemloader: /root/to_pm/templates/index.jinja (file not exist) 

and shows python path is:

python path:     ['/root/to_pm',  '/usr/local/bin',  '/usr/local/lib/python34.zip',  '/usr/local/lib/python3.4',  '/usr/local/lib/python3.4/plat-linux',  '/usr/local/lib/python3.4/lib-dynload',  '/usr/local/lib/python3.4/site-packages'] 

see attached picture: enter image description here how can change make website , running again? need change python path /www/to_pm? have echo $pythonpath , nothing showed up. don't know point.

i using supervisor run project on gunicorn application server , have checked supervisord.conf file , sure there no /root/to_pm path set in file.

update:

i have narrowed down problem. think it's not nginx issue because if turned nginx off still problem using initial ip , port without using port 80.

ok seems not server's problem. there zombie processes in backend of centos running project old path setting. after killed processes site has went live.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -