s='{%csrf_token%}%s' % 'test'
anton41kкак экранировать ‘%c’ и ‘%}’ ?
'{%%csrf_token%%}%s' % 'test'
'{{%csrf_token%}}{}'.format('test')