[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Como configurar mod_python en debian



yo lo hice de esta manera:

aptitude install libapache2-mod-python python-imaging python-mysqldb

Luego instale el paquetes:

Django-0.96.tar.gz

despues de descompatarlo, hago lo siguiente:

python setup.py install

python
import django
djando.VERSION

luego agrege esto en apache:

nano /etc/apache2.conf

<Location "/jc/vi/cave/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    PythonPath "['/var/www/jc/vi/'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE cave.settings
    PythonDebug On
    PythonAutoReload On
</Location>

#Esta parte es el directorio de las imagenes.... porque django no sierve
#contenidos estaticos como videos fotos etc.. entonces se lo pasa ha apache
<Location "/jc/vi/cave/imagenes/">
    SetHandler None
</Location>


#Este es es el tipo de contenido estatico que
<LocationMatch "\.(jpg|gif|png)$">
    SetHandler None
</LocationMatch>

Creo que esto fue suficiente, el sitio es este por si lo quieres ver:


http://www.pinar.jovenclub.cu/jc/vi/cave/



Saludos...


Eduardo R. Barrera Pérez
Administrador Nodo Jovenclub
Pinar del Río
Web-Site: http://www.pinar.jovenclub.cu
Jabber & Email: ebarrera@jabber.pri.jovenclub.cu


Reply to: