python - Django view gets called twice... sometimes -
python - Django view gets called twice... sometimes -
i have several logging.debug statements in home view of web site, log start time , end time of bunch of sql queries.
however, sometimes, see sets of debug statements pop twice in row in debug log. of course, during time 1 user has made 1 request (as in refresh, nail enter, etc.)
any ideas on might cause this? think may related problem we're having.
it's possible view function called once, logging twice. i've had problems before logging add_handler phone call beingness run twice, log had same handler twice, 1 log.debug() phone call result in same message in log twice.
python django http request
Comments
Post a Comment