{{{
return HttpResponse("You're looking at question %s." % question_id)
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)
}}}
I think it’s better to guide newcomers to the new way.
I’m ready to submit a patch for this if there’s nothing against it.
--
Ticket URL: <https://code.djangoproject.com/ticket/31555>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
Ticket URL: <https://code.djangoproject.com/ticket/31555#comment:1>
* status: new => closed
* resolution: => duplicate
Comment:
There is nothing wrong in `%` format. I don't see any reason to prefer
`.format()`, see [https://groups.google.com/forum/#!topic/django-
developers/psUTrFUNlQE/discussion discussion]. We could consider using
f-strings, but that's a duplicate of a more general ticket, see #29988.
--
Ticket URL: <https://code.djangoproject.com/ticket/31555#comment:2>