[Python-es] Ayuda con Django

Alexis Cabrera Mondeja alexiscm72 en hotmail.com
Lun Mar 17 19:26:48 CET 2014


No tengo acceso, tuve que pedirlo a soporte, que horror, este hosting solo permite php , es este, el log:

[Mon Mar 17 07:05:33 2014] [error] [client 192.96.204.42] Premature end of script headers: django.cgi, referer: http://domainsigma.com/whois/alex-designer.net
[Mon Mar 17 07:05:33 2014] [error] [client 192.96.204.42] Premature end of script headers: django.cgi, referer: http://domainsigma.com/whois/alex-designer.net
[Mon Mar 17 07:05:33 2014] [error] [client 192.96.204.42] Premature end of script headers: django.cgi, referer: http://domainsigma.com/whois/alex-designer.net
[Mon Mar 17 07:05:33 2014] [error] [client 192.96.204.42] Premature end of script headers: django.cgi, referer: http://domainsigma.com/whois/alex-designer.net
[Mon Mar 17 08:16:27 2014] [error] [client 88.0.5.75] ModSecurity: Failed deleting collection (name "ip", key "184.168.193.183"): Internal error [hostname "alex-designer.net"] [uri "/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/cgi-bin/django.cgi/otri_relaciones/admin"] [unique_id "UycRy2yo26kAABFvB-cAAAAJ"]
[Mon Mar 17 08:52:03 2014] [error] [client 198.252.65.4] ModSecurity: Failed deleting collection (name "ip", key "78.5.224.38"): Internal error [hostname "alex-designer.net"] [uri "/cgi-bin/django.cgi/homerunfans/ow_cron/run.php"] [unique_id "UycaI2yo26kAAHW9WHYAAABF"]
[Mon Mar 17 10:36:01 2014] [error] [client 182.118.20.216] Premature end of script headers: django.cgi, referer: http://www.alex-designer.net/robots.txt
[Mon Mar 17 10:36:01 2014] [error] [client 182.118.20.216] Premature end of script headers: django.cgi, referer: http://www.alex-designer.net/robots.txt

From: reroes799 en gmail.com
Date: Mon, 17 Mar 2014 09:47:13 -0500
To: python-es en python.org
Subject: Re: [Python-es] Ayuda con Django

Importante si nos muestras el archivo error.log de apache..

El 17 de marzo de 2014, 8:41, Alexis Cabrera Mondeja <alexiscm72 en hotmail.com> escribió:





Bueno, problema ninguno, creé un archivo django.cgi y seguí los pasos del tutorial pero sigue sin interpretar python, adjunto el archivo, en general ubicar en la primera línea la ruta de python3.3 para que use la versión mía y no la 2.4 que tienen ellos instalado, y al final la ruta de mi proyecto django, un archivo .htaccess con este código:



AddHandler cgi-script .cgi
RewriteEngine On
RewriteRule ^/(static.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(cgi-bin.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /cgi-bin/django.cgi/$1 [QSA,L]



No carga el proyecto, error 500.

Saludos

> Date: Mon, 17 Mar 2014 12:45:17 +0000
> From: esauro en gmail.com
> To: python-es en python.org


> Subject: Re: [Python-es] Ayuda con Django
> 
> Hola,
> ¿qué problema te da cuando lo configuras por CGI?
> 
> Saludos,
> Esau Rodriguez.
> 
> 2014-03-17 12:42 GMT+00:00 Alexis Cabrera Mondeja <alexiscm72 en hotmail.com>:


> > Gracias, ya había visto este tutorial, solo por cgi se puede,  igual seguí
> > los pasos por modo cgi y sigue sin funcionar.
> >
> > Si alguien sabe de algún tutorial,
> >


> > saludos
> >
> >> Date: Mon, 17 Mar 2014 12:19:53 +0000
> >> From: esauro en gmail.com
> >> To: python-es en python.org


> >> Subject: Re: [Python-es] Ayuda con Django
> >
> >>
> >> Hola,
> >> el hilo es viejo pero parece que algunos lo han conseguido.
> >>
> >> [1]


> >> http://forum.arvixe.com/smf/other-programs-promotions-graphics/how-to-install-django/
> >>


> >> 2014-03-17 12:14 GMT+00:00 Alexis Cabrera Mondeja
> >> <alexiscm72 en hotmail.com>:
> >> > Hola amigos, he instalado Python 3.3 y Django 1.6.2 en mi hosting


> >> > (www.arvixe.com), un problema porque usan Red Hat y una versión vieja de
> >> > python, pero ya funciona perfectamente bien. El caso es que ya puedo


> >> > trabajar en Django pero no puedo configurar Apache para que interprete
> >> > python. Intenté instalar el módulo mod_wsgi de apache pero no me dan
> >> > permisos:
> >> >


> >> > alexiscm en alex-designer.net [~]# yum install libapache2-mod-wsgi
> >> > You need to be root to perform this command.
> >> >


> >> > Les agradecería si alguien sabe la forma poder configurar apache para
> >> > poder
> >> > correr mis app de django,
> >> >
> >> > Saludos.


> >> >
> >> >
> >> > _______________________________________________
> >> > Python-es mailing list
> >> > Python-es en python.org


> >> > https://mail.python.org/mailman/listinfo/python-es
> >> > FAQ: http://python-es-faq.wikidot.com/


> >> >
> >>
> >>
> >>
> >> --
> >> Esaú Rodríguez
> >> esauro en gmail.com
> >> _______________________________________________


> >> Python-es mailing list
> >> Python-es en python.org
> >> https://mail.python.org/mailman/listinfo/python-es


> >> FAQ: http://python-es-faq.wikidot.com/
> >
> > _______________________________________________
> > Python-es mailing list


> > Python-es en python.org
> > https://mail.python.org/mailman/listinfo/python-es


> > FAQ: http://python-es-faq.wikidot.com/
> >
> 
> 
> 
> -- 
> Esaú Rodríguez
> esauro en gmail.com


> _______________________________________________
> Python-es mailing list
> Python-es en python.org
> https://mail.python.org/mailman/listinfo/python-es


> FAQ: http://python-es-faq.wikidot.com/
 		 	   		  

_______________________________________________

Python-es mailing list

Python-es en python.org

https://mail.python.org/mailman/listinfo/python-es

FAQ: http://python-es-faq.wikidot.com/




-- 
René Rolando Elizalde Solano
Ingeniero en Sistemas

Analista - ProgramadorPYTHON, HTML, CSS, JQUERY, SQLALCHEMY

http://reroes79.wordpress.com


http://reroes799.blogspot.com/
http://twitter.com/reroeshttp://www.facebook.com/reroes799


rrelizalde en utpl.edu.ecreroes79@hotmail.com

reroes79 en yahoo.es


_______________________________________________
Python-es mailing list
Python-es en python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/ 		 	   		  
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20140317/195ea015/attachment.html>


Más información sobre la lista de distribución Python-es