Thank you for your replies,

Kevin,
Adding a slash does no good when it comes to calling static files
using serve(). It works different than the regexp for calling a def
from views.py because it searches for directories, file extensions
etc.

Raffaele,
swaping the lines produces an "error 32, broken pipe".
I have been trying to figure out why but i did not find anything yet.
The parameters though are read and printed. I can not manage to do sth
with Error handling.

Any further suggestions?

On Feb 25, 7:23 pm, Raffaele Salmaso <raffaele.salm...@gmail.com>
wrote:
> Adonis wrote:
> > (r'^appname/mainpage/(?P<path>.*)$', 'django.views.static.serve',
> > {'document_root': '/mesa'}),
>
> this takes *everything* as 'path'> 
> (r'^appname/mainpage/(?P<xexe>\d+)/(?P<path>.*)$',
> > 'django.views.static.serve', {'document_root': '/mesa'}),
>
> this takes only digits as 'xexe', but it never get called because it
> cames after .*
>
> swap them as
> (r'^appname/mainpage/(?P<xexe>\d+)/(?P<path>.*)$',
>  'django.views.static.serve', {'document_root': '/mesa'}),
> (r'^appname/mainpage/(?P<path>.*)$', 'django.views.static.serve',
>  {'document_root': '/mesa'}),
>
> --
> ()_() | That said, I didn't actually _test_ my patch.      | +----
> (o.o) | That's what users are for!                         | +---+
> 'm m' |                                   (Linus Torvalds) |  O  |
> (___) |                      raffaele at salmaso punto org |
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to