On each of my pages I want to show a link, which outputs the current page in pdf. To do so I want to append ?pdf=1 or &pdf=1 to the current url. I do so using the code
if request.META['QUERY_STRING']: pdfpath = '%s&pdf=1' % request.get_full_path() else: pdfpath = '%s?pdf=1'% request.get_full_path() and <a href="{{pdfpath}}"> in the template. Is there a simpler way? (Some template tag maybe?) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---