numeric index for format

django_app   _do_login   function needs to use numeric index when formatting string to support Python 2.6