Django comment moderation error: AlreadyModerated at /
I'm trying to add the comments framework to a weblog I'm creating in Django. Adding the comments system appears to be working fine until I attempt to enable comment moderation. I add the following code to my models.py as per the instructions on the django website. My model is called Post which represents a post in the weblog. class PostModerator(CommentModerator): email_notification = False enable_field = 'allow_comments' moderator.register(Post, PostModerator) If I attempt to preview the site I get error AlreadyModerated at / with the exception The model 'post' is already being moderated. I have no idea why I'm getting this error as I have only just enabled comments and am not sure why Post would already be moderated. Happy to post any code if that may help finding the cause. Any help would be great. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Error configuring Django to run customized comments framework
I'm having an issue with setting up a Django website which uses the Django comments framework on my server. The site runs fine when run locally (using manage.py runserver) but when pushed live I'm getting the error: ImproperlyConfigured at / The COMMENTS_APP setting refers to a non-existing package. My server is an apache/mod_wsgi setup. My site contains 2 applications called weblog and weblog_comments. I've appended my site's path and it's parent directories to my django.wsgi file as per the guide located here: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango I can comment out the COMMENTS_APP line from my settings.py and the site runs fine so I know site is on the python path correctly. My custom comment model is called WeblogComment and extends the default Comment model. It only extends this to add methods to the model, it doesn't change Comment model fields thus It has proxy=True in it's Meta class. Any advice would be great. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django comments moderation stopped working
Just wondering if anyone else is having problems with the Django Comments Framework, specifically with the moderation functionality stopping working. Recently the moderation functionality has stopped working and all comments are getting through without first being approved. I'm not 100% sure what it is that has caused this as it WAS working and now it isn't. I have upgraded the Django installation to the latest version recently so I have a feeling this may be the problem (though it shouldn't be). I have checked and double checked my code matches the moderation documentation here: http://docs.djangoproject.com/en/1.2/ref/contrib/comments/moderation/. It feels as if the moderator is being skipped over entirely as the is_public field is set to True by default where is should be set to False by my custom CommentModerator. Also my custom CommentModerator has akismet code which normally deletes spam messages automatically but this doesn't seem to be working (hence me thinking the moderator is not being invoked at all). Just wondering if anyone is having the same problem and if there are any suggestion on how I might be able to debug this. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.