> Is there a simple way to do this within the template tag or would I > need to create a context processor and would this be available within > the templatetag or only within the template itself?
You can do this inside a template tag. Assuming that you already have the request available in your views' context[1], your template tag has access to that context so you will be able to get the request within your template tag's render method: request = context['request'] [1]http://www.djangoproject.com/documentation/templates_python/ #subclassing-context-requestcontext --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---