DoesNotExist: Group matching query does not exist.

asked 2015-10-14 05:54:14 -0500

miktil gravatar image

I'm keep getting that error whenever i want to post an answer:

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 113, in get_response response = callback(request, callback_args, *callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 136, in wrapper return view_func(request, args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 231, in wrapper return view_func(request, args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/recaptcha_works/decorators.py", line 67, in wrapped_view resp = view_func(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/views/writers.py", line 654, in answer ip_addr=request.META.get('REMOTE_ADDR')

File "/usr/local/lib/python2.7/dist-packages/askbot/forms.py", line 1268, in save ip_addr=ip_addr

File "/usr/local/lib/python2.7/dist-packages/askbot/utils/decorators.py", line 285, in wrapped return func(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/askbot/models/__init__.py", line 2292, in user_post_answer answer_post.add_to_groups([self.get_personal_group()])

File "/usr/local/lib/python2.7/dist-packages/askbot/models/__init__.py", line 2702, in user_get_personal_group return Group.objects.get(name=group_name)

File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, in get return self.get_query_set().get(args, *kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 404, in get self.model._meta.object_name)

DoesNotExist: Group matching query does not exist.

tried to run python manage.py syncdb --migrate --noinput Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Migrating... GhostMigrations:

! These migrations are in the database but not on disk: <askbot: 0180_generate_post_snippets=""> <askbot: 0181_auto__add_field_post_endorsed__add_field_post_endorsed_by__add_field_p=""> <askbot: 0182_populate_accepted_answers=""> <askbot: 0183_auto__del_field_thread_answer_accepted_at=""> <askbot: 0184_auto__add_field_post_current_revision=""> <askbot: 0185_populate_post_current_revision=""> <askbot: 0186_auto__add_field_badgedata_display_order=""> <askbot: 0187_remove_unused_badges=""> <askbot: 0188_null_country_field=""> <group_messaging: 0003_auto__add_unreadinboxcounter=""> ! I'm not trusting myself; either fix this yourself by fiddling ! with the south_migrationhistory table, or pass --delete-ghost-migrations ! to South to have it delete ALL of these records (this may not be good).

edit retag flag offensive close merge delete