Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15851

How to tell passenger_wsgi.py to look for Django project inside another folder?

$
0
0

I'm trying to host a django app on cpanel but i cant find a way to tell passenger_wsgi.py to look for the django project(main file) inside another folder

My site structure is:

/home/project/   tmp/   public/   passenger_wsgi.py   abdi-group/

passenger_wsgi.py:

from abdiGroup.wsgi import application

this works fine if i move everything inside abdi-group/ to /home/project/

I tried this:

passenger_wsgi.py:

from abdi-group.abdiGroup.wsgi import application

but it can't find abdiGroup(django project name) inside abdi-group/

am i missing something?


Viewing all articles
Browse latest Browse all 15851

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>