I setup a Django project with uWsgi.
Using the wizard with this config xml file:
<uwsgi>
<pythonpath>/home/django/apps/sonrisas3/sonrisas</pythonpath>
<pythonpath>/home/django/apps/sonrisas3</pythonpath>
<pidfile>/home/django/apps/sonrisas3/var/run/sonrisas_no.pid</pidfile>
<app mountpoint="/">
<script>wsgi_handler</script>
</app>
<listen>100</listen>
<master />
<socket-timeout>5</socket-timeout>
<processes>4</processes>
</uwsgi>
The project starts great, but without appending slash to url's
If I go http://smilesofthestreet.no/admin it raises a view, and not
http://smilesofthestreet.no/admin/
For demonstrations:
Using fastcgi, here → http://creat1va.com/~sonrisas/admin # Here it
redirects to /admin/
Using uwsgi, here → http://smilesofthestreet.no/admin # Here not
Both with the same settings and same code.
any hints why it's happening?
--
Mario César Señoranis Ayala
_______________________________________________
Cherokee mailing list
Cher...@lists.octality.com
http://lists.octality.com/listinfo/cherokee
> Hi all,
>
> I setup a Django project with uWsgi.
>
> Using the wizard with this config xml file:
>
> <uwsgi>
> <pythonpath>/home/django/apps/sonrisas3/sonrisas</pythonpath>
> <pythonpath>/home/django/apps/sonrisas3</pythonpath>
> <pidfile>/home/django/apps/sonrisas3/var/run/sonrisas_no.pid</pidfile>
<app mountpoint="/">
> <script>wsgi_handler</script>
> </app>
> <listen>100</listen>
> <master />
> <socket-timeout>5</socket-timeout>
> <processes>4</processes>
> </uwsgi>
Try substituting the block
<app mountpoint="/">
<script>wsgi_handler</script>
</app>
with only
<module>wsgi_handler</module>
--
Roberto De Ioris
http://unbit.it
--
Roberto De Ioris
http://unbit.it
Thank you,
I did and I have the same result.
--
Mario César Señoranis Ayala
_______________________________________________
For me works out of the box using the same kind of configuration
<app mountpoint="/"><script>django_wsgi</script></app>
2010/9/28 Mario César Señoranis Ayala <marioce...@gmail.com>
On 28/09/10 13:33, Roberto De Ioris wrote:Thank you,
Try substituting the block
<app mountpoint="/">
<script>wsgi_handler</script>
</app>
with only
<module>wsgi_handler</module>
I did and I have the same result.
Yes this is perfectly valid, i got a mistake in the first response.
The problem is with the "check file" option in the cherokee configuration.
It must be disabled.
--
Roberto De Ioris
http://unbit.it
Thank you !
that solve the problem :-)
--
Mario César Señoranis Ayala
_______________________________________________