Hello, I am having some trouble serving static files when i try to pass an optional parameter. For url: appname.mainpage/, the static files work fine For url: appname.mainpage/10/, the static files are not read.
** url.py (r'^appname/mainpage/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/mesa'}), (r'^appname/mainpage/(?P<xexe>\d+)/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/mesa'}), views.py def mainpage(request, xexe=0): print "optional parameter: ", xexe return render_to_response('mesa/blah.html', {...some args...}) ** Any suggestions my respectful django users? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---