Created
August 25, 2019 01:32
-
-
Save JOFLIX/82a2bb283e168731e38fdb3d451b5a35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment: | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/search/?q=1 | |
Django Version: 2.2.3 | |
Python Version: 3.6.8 | |
Installed Applications: | |
['app', | |
'material', | |
'crispy_forms', | |
'material.admin', | |
'imagekit', | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.sitemaps', | |
'django.contrib.sites', | |
'django_admin_reset', | |
'gallery', | |
'watermarker', | |
'whitenoise.runserver_nostatic', | |
'user.apps.UserConfig'] | |
Installed Middleware: | |
('whitenoise.middleware.WhiteNoiseMiddleware', | |
'django.middleware.security.SecurityMiddleware', | |
'whitenoise.middleware.WhiteNoiseMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware', | |
'django.middleware.clickjacking.XFrameOptionsMiddleware', | |
'material.frontend.middleware.SmoothNavigationMiddleware', | |
'material.frontend.middleware.TurbolinksMiddleware') | |
Traceback: | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner | |
34. response = get_response(request) | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response | |
115. response = self.process_exception_by_middleware(e, request) | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response | |
113. response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/views/generic/base.py" in view | |
71. return self.dispatch(request, *args, **kwargs) | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch | |
97. return handler(request, *args, **kwargs) | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/views/generic/detail.py" in get | |
106. self.object = self.get_object() | |
File "/home/moringa-school/Documents/django-photo-gallery-master/django_photo_gallery/virtual/lib/python3.6/site-packages/django/views/generic/detail.py" in get_object | |
47. "pk or a slug in the URLconf." % self.__class__.__name__ | |
Exception Type: AttributeError at /search/ | |
Exception Value: Generic detail view SearchResultsView must be called with either an object pk or a slug in the URLconf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment