Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alangore

macrumors member
Original poster
May 23, 2010
36
15
If you are running Python/Django to develop sites, what is involved in getting Django and Python to cooperate with Apache 2? And what databases are you using?
 
If you are running Python/Django to develop sites, what is involved in getting Django and Python to cooperate with Apache 2? And what databases are you using?

To install Django just type sudo easy_install django from the command line and it will download and install it automatically.

You need to install mod_wsgi or mod_python. Other than that it is simply a case of configuring Apache.

I use PostgreSQL for the database. Once you have installed PostgreSQL you will need to install psycopg2 to access a PostgreSQL database from Python. To install it just type sudo easy_install psycopg2 from the command line. You MUST have PostgreSQL installed first for this to work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.