Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a problem running Django with mod_wsgi and Apache on CentOS.

Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks other services such as yum. I installed Python 2.7 into different directory.

I followed most of the tutorial and article about running Django with mod_wsgi but never able successfully run it.

Does any of you run Django on CentOS successfully? If so, how did you do it?

share|improve this question
    
This should be doable, but even an incredibly in-depth answer can't practically cover every issue you might have - which is why we like questions to cover a specific problem, instead of an entire subject. Can you edit your question to include specific issues or errors that you've run into, what steps you've tried, and what your config looks like now? –  Shane Madden Jan 17 '12 at 20:46

1 Answer 1

Try virualenv. That should do it.

Here is a nice write up on virtualenv: http://iamzed.com/2009/05/07/a-primer-on-virtualenv/

share|improve this answer
    
Using a virtual environment is not enough as mod_wsgi must be compiled against the correct Python version you want to use. You can't just tell it to use a virtual environment from a different Python version. –  Graham Dumpleton Jan 23 '12 at 6:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.