Thursday, September 5, 2019

Re: MultipleObjectsReturned: get() returned more than one Site -- it returned 2!

A screenshot will do a lot of help,  this is really terrible I can't read or interpret it & u not saying Wat u intend on archiving 

On Sep 5, 2019 23:02, "gh" <mary.ghailu@gmail.com> wrote:
Traceback (most recent call last):
   File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 108, in get_response
   response = middleware_method(request)
   File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/sites/middleware.py", line 10, in process_request
   request.site = get_current_site(request)
    File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/sites/shortcuts.py", line 15, in get_current_site
    return Site.objects.get_current(request)
    File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_sites_extensions/models.py", line 40, in patched_get_current
     return self._get_site_by_request(request)  # pylint: disable=protected-access
    File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_sites_extensions/models.py", line 92, in patched_get_site_by_request
   site = self.get(domain__iexact=host)
    File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
    File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 338, in get
    (self.model._meta.object_name, num)
    MultipleObjectsReturned: get() returned more than one Site -- it returned 2!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1b8f2de7-9f94-4a64-aeb1-748ffb333a8a%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn722PP5nrgDiJGnRFTwArjRD3N4SPuL-o1Ec5jTXf0MsNw%40mail.gmail.com.

No comments:

Post a Comment