First time here? Check out the FAQ!

Revision history  [back]

Why do I need to run fix_revisionless_posts frequently?

We have recently set up an Askbot instance, which mostly works well, but frequently some questions appear to become corrupted, and I have to run manage.py fix_revisionless_posts to make that question work again.

Here is the output from running that command. I’m glad to provide whatever info you need to debug further.

root@help:/home/help# python manage.py fix_revisionless_posts WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently see outdated content on your site.

System check identified some issues:

WARNINGS: django_authopenid.UserPasswordQueue.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. group_messaging.SenderList.recipient: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. have 1 corrupted posts