views:

30

answers:

1

We're using the Django Admin to maintain some data that's exported to a few of our sites. Sometimes when clicking through the standard changelist view to get a model edit form instead of being routed to the correct page we're getting the Django 404 page/template.

It was happening somewhat sporatically, and we could for a while reproduce it by reloading three times:

  • First F5: 404
  • Second F5: 404
  • Third F5: Object change form loads correctly

But lately it's been returning 404 more often than not. It seems to reduce the odds of returning 404 when we bounce apache (gracefully) and gets worse (again, seemingly) with more requests.

Running Django 1.2.1 on Fast-CGI/MySQL 5.1.x

FWIW, I can't reproduce the problem on my VM, but I'm running mod_wsgi there and have Debug=True set in the settings. Otherwise the code and database is identical.

A: 

See if the alternate WSGI script at the end of:

http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

makes a difference.

Graham Dumpleton