Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
@register.simple_tag(takes_context = True)
def tag_name(context):
request = context['request']
result = request.COOKIES.get('test2')
return result
{% tag_name %}
Obviously, not Request, but some SafeText comes to your "view". By the way, it also returns not a valid Response, but a string or None
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question