MultipleObjectsReturned at /occasions/DAF_FT_XF_105_Euro_6 / get() returned more than one Vehicule -- it returned 2! Request Method: GET Request URL: http://gsvi.com/occasions/DAF_FT_XF_105_Euro_6%20/ Django Version: 1.7 Exception Type: MultipleObjectsReturned Exception Value: get() returned more than one Vehicule -- it returned 2! Exception Location: /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/db/models/query.py in get, line 361 Python Executable: /srv/data03/python-envs/gsvi.com/bin/python2.7 Python Version: 2.7.10 Python Path: ['/srv/data03/python-envs/gsvi.com/gsvi/gsvi/apps', '/srv/data03/python-envs/gsvi.com/gsvi', '/srv/data03/python-envs/gsvi.com/bin', '/srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg', '/srv/data03/python-envs/gsvi.com/lib/python27.zip', '/srv/data03/python-envs/gsvi.com/lib/python2.7', '/srv/data03/python-envs/gsvi.com/lib/python2.7/plat-linux2', '/srv/data03/python-envs/gsvi.com/lib/python2.7/lib-tk', '/srv/data03/python-envs/gsvi.com/lib/python2.7/lib-old', '/srv/data03/python-envs/gsvi.com/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages'] Server time: jeu, 13 Oct 2016 22:01:08 +0200 Traceback Switch to copy-and-paste view /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/core/handlers/base.py in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/views/generic/base.py in view return self.dispatch(request, *args, **kwargs) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/views/generic/base.py in dispatch return handler(request, *args, **kwargs) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/views/generic/base.py in get context = self.get_context_data(**kwargs) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/gsvi/gsvi/apps/rent/views.py in get_context_data context['object'] = Vehicule.objects.get(slug=self.kwargs['slug']) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/db/models/manager.py in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) ... ▶ Local vars /srv/data03/python-envs/gsvi.com/lib/python2.7/site-packages/django/db/models/query.py in get num if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS ... ▶ Local vars Request information GET No GET data POST No POST data FILES No FILES data COOKIES No cookie data META Variable Value wsgi.multiprocess False HTTP_REFERER 'http://gsvi.com/' SERVER_SOFTWARE 'gunicorn/19.1.1' SCRIPT_NAME u'' REQUEST_METHOD 'GET' PATH_INFO u'/occasions/DAF_FT_XF_105_Euro_6 /' SERVER_PROTOCOL 'HTTP/1.0' QUERY_STRING '' HTTP_USER_AGENT 'Mozilla/5.0 (compatible; archive.org_bot +http://www.archive.org/details/archive.org_bot)' HTTP_CONNECTION 'close' SERVER_NAME '127.0.0.1' REMOTE_ADDR '127.0.0.1' wsgi.url_scheme 'http' SERVER_PORT '1401' wsgi.input <gunicorn.http.body.Body object at 0xb5c48f8c> HTTP_HOST 'gsvi.com' wsgi.multithread False HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' wsgi.version (1, 0) RAW_URI '/occasions/DAF_FT_XF_105_Euro_6%20/' wsgi.run_once False wsgi.errors <gunicorn.http.wsgi.WSGIErrorsWraper object at 0xb5d5124c> REMOTE_PORT '39516' gunicorn.socket <socket._socketobject object at 0xb5ea8224> HTTP_X_FORWARDED_FOR '207.241.229.243' wsgi.file_wrapper '' CSRF_COOKIE u'MiFpsurE3iQxheepRoDPodamwvQNfcjW' Settings Using settings module gsvi.settings.base Setting Value USE_L10N True USE_THOUSAND_SEPARATOR False CSRF_COOKIE_SECURE False LANGUAGE_CODE 'fr' ROOT_URLCONF 'gsvi.urls' LOGIN_URL '/accounts/login/' BASE_DIR '/srv/data03/python-envs/gsvi.com/gsvi/gsvi' TEST_NON_SERIALIZED_APPS [] DEFAULT_CHARSET 'utf-8' SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' STATIC_ROOT '/srv/data02/python-envs/gsvi.com/staticfiles/' DEFAULT_LANGUAGE 1 ALLOWED_HOSTS ['gsvi.fr', '.gsvi.fr', 'gsvi.medianetroom.com'] MESSAGE_STORAGE 'django.contrib.messages.storage.fallback.FallbackStorage' EMAIL_SUBJECT_PREFIX '[Django] ' SEND_BROKEN_LINK_EMAILS False STATICFILES_FINDERS ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') SESSION_CACHE_ALIAS 'default' SESSION_COOKIE_DOMAIN None SESSION_COOKIE_NAME 'sessionid' ROSETTA_EXCLUDED_APPLICATIONS () ADMIN_FOR () TIME_INPUT_FORMATS ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') DATABASES {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'gsvi_db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'Europe/Paris', 'USER': 'pepourquier'}} FILE_UPLOAD_DIRECTORY_PERMISSIONS None FILE_UPLOAD_PERMISSIONS None FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.core.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'base.views.custom_proc') DEFAULT_CONTENT_TYPE 'text/html' BING_APP_ID None APPEND_SLASH True LOCALE_PATHS () DATABASE_ROUTERS [] DEFAULT_TABLESPACE '' YEAR_MONTH_FORMAT 'F Y' STATICFILES_STORAGE 'django.contrib.staticfiles.storage.StaticFilesStorage' CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} SERVER_EMAIL 'root@localhost' SESSION_COOKIE_PATH '/' SILENCED_SYSTEM_CHECKS [] MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.locale.LocaleMiddleware') USE_I18N True THOUSAND_SEPARATOR ',' SECRET_KEY u'********************' LANGUAGE_COOKIE_NAME 'django_language' DEFAULT_INDEX_TABLESPACE '' CONTACTME_MSG_MAX_LEN 3000 LOGGING_CONFIG 'logging.config.dictConfig' TEMPLATE_LOADERS ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') FIRST_DAY_OF_WEEK 0 WSGI_APPLICATION 'gsvi.wsgi.application' TEMPLATE_DEBUG True X_FRAME_OPTIONS 'SAMEORIGIN' CSRF_COOKIE_NAME 'csrftoken' FORCE_SCRIPT_NAME None USE_X_FORWARDED_HOST False SIGNING_BACKEND 'django.core.signing.TimestampSigner' SESSION_COOKIE_SECURE False CSRF_COOKIE_DOMAIN None FILE_CHARSET 'utf-8' DEBUG True LANGUAGE_COOKIE_DOMAIN None DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' INSTALLED_APPS ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.syndication', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'grappelli', 'grappelli.dashboard', 'django.contrib.admin', 'django.contrib.sitemaps', 'gunicorn', 'base', 'django_contactme', 'pager', 'agency', 'articles', 'easy_thumbnails', 'form_utils', 'rent', 'django_recruit', 'partners', 'promote', 'faq', 'smart_selects', 'i18n_model') LANGUAGES_BIDI ('he', 'ar', 'fa', 'ur') COMMENTS_ALLOW_PROFANITIES False STATICFILES_DIRS () PREPEND_WWW False SECURE_PROXY_SSL_HEADER None PASSWORD_RESET_TIMEOUT_DAYS u'********************' LANGUAGE_COOKIE_AGE None SESSION_COOKIE_HTTPONLY True DEBUG_PROPAGATE_EXCEPTIONS False INTERNAL_IPS ('127.0.0.1',) MONTH_DAY_FORMAT 'F j' MANAGERS (('Pierre-Emmanuel Pourquier', 'pepourquier@medianetroom.com'),) SESSION_EXPIRE_AT_BROWSER_CLOSE False SOUTH_TESTS_MIGRATE False TIME_FORMAT 'P' ROSETTA_ENABLE_TRANSLATION_SUGGESTIONS False AUTH_USER_MODEL 'auth.User' DATE_INPUT_FORMATS ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) EMAIL_HOST_PASSWORD u'********************' GRAPPELLI_ADMIN_TITLE 'Administration de gsvi' SESSION_FILE_PATH None CACHE_MIDDLEWARE_ALIAS 'default' SESSION_SAVE_EVERY_REQUEST False ADMIN_MEDIA_PREFIX '/static/grappelli/' NUMBER_GROUPING 0 SESSION_ENGINE 'django.contrib.sessions.backends.db' CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure' CSRF_COOKIE_PATH '/' ROSETTA_MESSAGES_PER_PAGE 10 LOGIN_REDIRECT_URL '/accounts/profile/' DECIMAL_SEPARATOR '.' IGNORABLE_404_URLS () MIGRATION_MODULES {} TEMPLATE_STRING_IF_INVALID '' LOGOUT_URL '/accounts/logout/' EMAIL_USE_TLS False FIXTURE_DIRS () EMAIL_HOST 'localhost' DATE_FORMAT 'N j, Y' MEDIA_ROOT '/srv/data03/python-envs/gsvi.com/gsvi/gsvi/apps/base/static/' DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' ADMINS (('Pierre-Emmanuel Pourquier', 'pepourquier@medianetroom.com'),) ROSETTA_MESSAGES_SOURCE_LANGUAGE_NAME 'English' FORMAT_MODULE_PATH None DEFAULT_FROM_EMAIL 'noreply@gsvi.com' MEDIA_URL '' DATETIME_FORMAT 'N j, Y, P' TEMPLATE_DIRS ['gsvi/apps/base/templates/'] SITE_ID 1 DISALLOWED_USER_AGENTS () ALLOWED_INCLUDE_ROOTS () LOGGING {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} PROJECT_DIR '/srv/data03/python-envs/gsvi.com/gsvi' TEST_RUNNER 'django.test.runner.DiscoverRunner' SHORT_DATE_FORMAT 'm/d/Y' CACHE_MIDDLEWARE_KEY_PREFIX u'********************' TIME_ZONE 'Europe/Paris' FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 EMAIL_BACKEND 'django.core.mail.backends.smtp.EmailBackend' EMAIL_USE_SSL False DATETIME_INPUT_FORMATS ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') ROSETTA_REQUIRES_AUTH True ROSETTA_MESSAGES_SOURCE_LANGUAGE_CODE 'en' SESSION_COOKIE_AGE 1209600 SETTINGS_MODULE 'gsvi.settings.base' USE_ETAGS False LANGUAGES ((u'fr', <django.utils.functional.__proxy__ object at 0xb740b40c>), (u'en', <django.utils.functional.__proxy__ object at 0xb740b34c>), (u'pt', <django.utils.functional.__proxy__ object at 0xb740b36c>)) FILE_UPLOAD_TEMP_DIR None CSRF_COOKIE_AGE 31449600 STATIC_URL '/static/' EMAIL_PORT 25 USE_TZ False SHORT_DATETIME_FORMAT 'm/d/Y P' PASSWORD_HASHERS u'********************' ABSOLUTE_URL_OVERRIDES {} LANGUAGE_COOKIE_PATH '/' CACHE_MIDDLEWARE_SECONDS 600 CSRF_COOKIE_HTTPONLY False CRISPY_TEMPLATE_PACK 'bootstrap' TRANSACTIONS_MANAGED False ROSETTA_STORAGE_CLASS 'rosetta.storage.CacheRosettaStorage' PROFANITIES_LIST u'********************' EMAIL_HOST_USER '' CONTACTME_NOTIFY_TO 'Contact GSVI <contact@gsvi.com>,' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.