Is anyone running Django on Snow Leopard Server?

Discussion in 'Web Design and Development' started by alangore, May 23, 2010.

  1. alangore macrumors newbie

    Joined:
    May 23, 2010
    #1
    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?
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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.
     

Share This Page