2008/10/13 Alvaro Lopez Ortega <[EMAIL PROTECTED]>
> > There is a little quirk that I didn't yet tracked (I don't think its
> > cherokee fault) though, when you want to mount the django app in a
> > subdirectory of the site, eg:
> >
> > vserver!1!rule!10!match = directory
> > vserver!1!rule!10!match!directory = /demo
> >
> > and you have you django apps urls.py as:
> >
> > urlpatterns = patterns('',
> > (r'^demo/', include('hello.demo.urls')),
> > )
>
> Since the application is already contained in the /demo directory by
> the server.. wouldn't the RoR URL handling code be more like (r'^/',
> include('hello.demo.urls'))? :-m
>
I think that the most correct behaviour would be:
Iff the server is mounting the django application on /demo/
all the urls received inside django will be relative to there, so it will
receive /demo/ as "/", and urls.py should be updated to handle it -
If we wanted django to handle the "/demo/" by itself we would have
to setup cherokee to pass the requests from "/" directly to django.
What do you think?
--
Miguel Angel Ajo Pelayo
http://optimizacionweb.es
+34 91 120 1798
+34 636 52 25 69
skype: ajoajoajo
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee