I have a code something like below
"""<div id="spc-preview-edit-submit" class="spc-form">
<form action="{% url new-submission itemtype='%s' %}"
...
...
</div></form></div>""" % value
I am getting %u format: a number is required, not unicode error.
I tried using format() with double braces but, its even raising errors..
Can anyone tell a simple and elegant solution
%characters in there. Escape them and you should be fine.