Installing Django under mod_python

Discussion in 'Installation/Configuration' started by Phoop, Jun 12, 2008.

  1. Phoop

    Phoop New Member

    I want to install mod_python under our ISPConfig. Surely this is not a problem, but I have a question regarding the configuring.

    As ISPConfig does not support mod_python out of the box, I have to edit the vhosts file myself to add the nessecary lines. This is not a problem at all.

    My question is: When I add those lines, and after a week or two want to edit that VHost under ISPConfig, will those lines be deleted or preserved?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do not edit the vhost, add the lines in the apache directives field of the website instead.
     
  3. Phoop

    Phoop New Member

    Totally forget about that part.

    Thanks!
     
  4. dayjahone

    dayjahone Member

    How do you do that? I'm interested in installing django as well. Thanks.
     
  5. Phoop

    Phoop New Member

    Yes, I managed to install Django. Since Im running the latest Ubuntu LTS I just installed mod_python for Apache2 and exported the SVN Trunk to my site-packages.

    After that I uploaded my django project to the web folder.

    Last step, adjust and paste this into the Apache Directives in the ISPConfig configuration of the site:

    <Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE intranet.settings
    PythonDebug On
    PythonPath "['/var/www/web18/web'] + sys.path"
    </Location>
     
  6. falko

    falko Super Moderator ISPConfig Developer

    apt-get usually is for Debian-based distributions. You should try yast instead.
     

Share This Page