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 -~----------~----~----~----~------~----~------~--~---