ok, by doing this: * (r'^appname/mama/(.*)/(.*)/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/blah'}) * i managed to overcome the broken pipe issue. It was not able to read some images i had in a separate folder--> "blah/images/sth.jpg". I either had to give them a Global URL or put them in the "blah" folder.
cheers, On Feb 26, 3:08 pm, Adonis <achrysoch...@hotmail.com> wrote: > hello dear djangonauts, > > Could anyone explain what is wrong here and i am getting an error 32: > broken pipe? > I am using this url: ...appname/mama/10/10/ > > * > url.py > > (r'^appname/mama/(?P<arg_one>\d+)/(?P<arg_two>\d+)/$', > 'appname.views.mama') > (r'^appname/mama/(?P<arg_one>\d+)/(?P<arg_two>\d+)/(?P<path>.*)$', > 'django.views.static.serve', {'document_root': '/blah'}) > > views.py > > def mama(request, arg_one=0, arg_two=0): > print arg_one > print arg_two > return render_to_response('blah/mainIntro.html') > * > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---