ok, seems i found a quick n dirty way to overcome the broken pipe. I just left it like this, * (r'^appname/mainpage/(.*)/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/mesa'}) * and it loads the static files EXCEPT some images that where in a separate folder--> "mesa/images/sth.jpg".
If you have sth to add be my guests! thanks again! On Feb 26, 11:58 am, Adonis <achrysoch...@hotmail.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---