Skip to content

Instantly share code, notes, and snippets.

@vinitkumar
Created March 16, 2018 07:24
Show Gist options
  • Save vinitkumar/6f03bc55aba62c9dda8f3c3ef7eb41c0 to your computer and use it in GitHub Desktop.
Save vinitkumar/6f03bc55aba62c9dda8f3c3ef7eb41c0 to your computer and use it in GitHub Desktop.
Traceback:
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
244. response = middleware_method(request)
File "/Users/vinitkumar/projects/python/cp/socialschools/apps/multitenant/middleware.py" in process_request
43. request.site = get_site_from_host(request)
File "/Users/vinitkumar/projects/python/cp/socialschools/apps/multitenant/middleware.py" in get_site_from_host
30. site = Site.objects.get(pk=settings.SITE_ID)
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method
85. return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/db/models/query.py" in get
373. num = len(clone)
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/db/models/query.py" in __len__
232. self._fetch_all()
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
1102. self._result_cache = list(self._iterable_class(self))
File "/Users/vinitkumar/.virtualenvs/socialschools/lib/python2.7/site-packages/django/db/models/query.py" in __iter__
53. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
Exception Type: TypeError at /
Exception Value: execute_sql_cache() got an unexpected keyword argument 'chunked_fetch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment