numeric index for format

django_app   _do_login   function needs to use numeric index when formatting string