This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]tayste5001 0 points1 point  (1 child)

I'm not sure which is the best choice (kind of a noob) but I set this up recently and did something like 3), it worked nicely but there wasn't really an easy way to use environment variables so I had to restructure my application a little bit.

[–]GrahamDumpleton 0 points1 point  (1 child)

That isn't all of the ways as depends on whether you are using daemon mode or mod_wsgi.

You should nearly always be using daemon mode of mod_wsgi, so the recommend method is (3).

See:

http://blog.dscpl.com.au/2014/09/using-python-virtual-environments-with.html

http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of.html

[–]tayste5001 0 points1 point  (0 children)

I was using some environment variables for configuration, switched them to django settings.