Closed JBrandh closed 5 years ago
INFO - 1.82 [s] : Upload study ERROR Expecting value: line 1 column 1 (char 0) WARNING b'MultipleObjectsReturned at /api/v1/studies/10799813/\nget() returned more than one Intervention -- it returned 2!\n\nRequest Method: PATCH\nRequest URL: http://develop.pk-db.com/api/v1/studies/10799813/\nDjango Version: 2.2.1\nPython Executable: /usr/local/bin/python\nPython Version: 3.6.8\nPython Path: [\'/usr/local/bin\', \'/usr/local/lib/python36.zip\', \'/usr/local/lib/python3.6\', \'/usr/local/lib/python3.6/lib-dynload\', \'/usr/local/lib/python3.6/site-packages\', \'/code\']\nServer time: Wed, 8 May 2019 11:09:39 +0000\nInstalled Applications:\n(\'django.contrib.admin\',\n \'django.contrib.auth\',\n \'django.contrib.sites\',\n \'django.contrib.contenttypes\',\n \'django.contrib.sessions\',\n \'django.contrib.messages\',\n \'django.contrib.staticfiles\',\n \'bootstrap3\',\n \'allauth\',\n \'allauth.account\',\n \'allauth.socialaccount\',\n \'allauth.socialaccount.providers.github\',\n \'rest_framework\',\n \'rest_framework.authtoken\',\n \'django_filters\',\n \'rest_framework_swagger\',\n \'corsheaders\',\n \'django_elasticsearch_dsl\',\n \'django_elasticsearch_dsl_drf\',\n \'pkdb_app.users\',\n \'pkdb_app.studies\',\n \'pkdb_app.categorials\',\n \'pkdb_app.subjects\',\n \'pkdb_app.substances\',\n \'pkdb_app.interventions\',\n \'pkdb_app.outputs\',\n \'pkdb_app.comments\')\nInstalled Middleware:\n(\'django.middleware.security.SecurityMiddleware\',\n \'django.contrib.sessions.middleware.SessionMiddleware\',\n \'corsheaders.middleware.CorsMiddleware\',\n \'django.middleware.common.CommonMiddleware\',\n \'django.middleware.csrf.CsrfViewMiddleware\',\n \'django.contrib.auth.middleware.AuthenticationMiddleware\',\n \'django.contrib.messages.middleware.MessageMiddleware\',\n \'django.middleware.clickjacking.XFrameOptionsMiddleware\')\n\n\nTraceback:\n\nFile "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner\n 34. response = get_response(request)\n\nFile "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response\n 115. response = self.process_exception_by_middleware(e, request)\n\nFile "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response\n 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view\n 54. return view_func(*args, **kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py" in view\n 103. return self.dispatch(request, *args, **kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch\n 483. response = self.handle_exception(exc)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception\n 443. self.raise_uncaught_exception(exc)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch\n 480. response = handler(request, *args, **kwargs)\n\nFile "/code/pkdb_app/studies/views.py" in partial_update\n 106. return super().partial_update(request, *args, **kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in partial_update\n 84. return self.update(request, *args, **kwargs)\n\nFile "/code/pkdb_app/studies/views.py" in update\n 110. return super().update(request, *args, **kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in update\n 69. serializer.is_valid(raise_exception=True)\n\nFile "/code/pkdb_app/serializers.py" in is_valid\n 784. return super().is_valid(raise_exception)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in is_valid\n 236. self._validated_data = self.run_validation(self.initial_data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 434. value = self.to_internal_value(data)\n\nFile "/code/pkdb_app/studies/serializers.py" in to_internal_value\n 236. return super().to_internal_value(data)\n\nFile "/code/pkdb_app/serializers.py" in to_internal_value\n 64. return super().to_internal_value(data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in to_internal_value\n 488. validated_value = field.run_validation(primitive_value)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 434. value = self.to_internal_value(data)\n\nFile "/code/pkdb_app/outputs/serializers.py" in to_internal_value\n 380. data = super().to_internal_value(data)\n\nFile "/code/pkdb_app/serializers.py" in to_internal_value\n 731. return super().to_internal_value(data)\n\nFile "/code/pkdb_app/serializers.py" in to_internal_value\n 500. return super().to_internal_value(data)\n\nFile "/code/pkdb_app/serializers.py" in to_internal_value\n 64. return super().to_internal_value(data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in to_internal_value\n 488. validated_value = field.run_validation(primitive_value)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 623. value = self.to_internal_value(data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in to_internal_value\n 662. validated = self.child.run_validation(item)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 434. value = self.to_internal_value(data)\n\nFile "/code/pkdb_app/outputs/serializers.py" in to_internal_value\n 192. return super(serializers.ModelSerializer, self).to_internal_value(data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in to_internal_value\n 488. validated_value = field.run_validation(primitive_value)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 623. value = self.to_internal_value(data)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in to_internal_value\n 662. validated = self.child.run_validation(item)\n\nFile "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in run_validation\n 434. value = self.to_internal_value(data)\n\nFile "/code/pkdb_app/outputs/serializers.py" in to_internal_value\n 89. data = self.to_internal_related_fields(data)\n\nFile "/code/pkdb_app/serializers.py" in to_internal_related_fields\n 561. & Q(name=intervention, normed=True)\n\nFile "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method\n 82. return getattr(self.get_queryset(), name)(*args, **kwargs)\n\nFile "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in get\n 412. (self.model._meta.object_name, num)\n\nException Type: MultipleObjectsReturned at /api/v1/studies/10799813/\nException Value: get() returned more than one Intervention -- it returned 2!\nRequest information:\nUSER: jbrandhorst\n\nGET: No GET data\n\nPOST: No POST data\n\nFILES: No FILES data\n\nCOOKIES: No cookie data\n\nMETA:\nCONTENT_LENGTH = \'398\'\nCONTENT_TYPE = \'application/json\'\nHTTP_ACCEPT = \'*/*\'\nHTTP_ACCEPT_ENCODING = \'gzip, deflate\'\nHTTP_AUTHORIZATION = \'token a5674e5bd29655b72053f237416b61d73dba0aaa\'\nHTTP_CONNECTION = \'close\'\nHTTP_HOST = \'develop.pk-db.com\'\nHTTP_USER_AGENT = \'python-requests/2.21.0\'\nHTTP_X_FORWARDED_FOR = \'141.20.65.246, 172.107.0.1\'\nHTTP_X_FORWARDED_PROTO = \'https\'\nHTTP_X_REAL_IP = \'141.20.65.246\'\nPATH_INFO = \'/api/v1/studies/10799813/\'\nQUERY_STRING = \'\'\nRAW_URI = \'/api/v1/studies/10799813/\'\nREMOTE_ADDR = \'172.19.0.6\'\nREMOTE_PORT = \'57024\'\nREQUEST_METHOD = \'PATCH\'\nSCRIPT_NAME = \'\'\nSERVER_NAME = \'0.0.0.0\'\nSERVER_PORT = \'8000\'\nSERVER_PROTOCOL = \'HTTP/1.0\'\nSERVER_SOFTWARE = \'gunicorn/19.9.0\'\ngunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=(\'172.19.0.5\', 8000), raddr=(\'172.19.0.6\', 57024)>\nwsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f39e9385dd8>\nwsgi.file_wrapper = \'\'\nwsgi.input = <gunicorn.http.body.Body object at 0x7f39e996b898>\nwsgi.multiprocess = True\nwsgi.multithread = False\nwsgi.run_once = False\nwsgi.url_scheme = \'http\'\nwsgi.version = \'(1, 0)\'\n\nSettings:\nUsing settings module pkdb_app.settings\nABSOLUTE_URL_OVERRIDES = {}\nACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS = False\nACCOUNT_AUTHENTICATION_METHOD = \'email\'\nACCOUNT_EMAIL_REQUIRED = True\nACCOUNT_LOGOUT_REDIRECT_URL = \'"http://0.0.0.0:8000"/#/account\'\nACCOUNT_USERNAME_MIN_LENGTH = 3\nACCOUNT_USERNAME_REQUIRED = True\nADMINS = "((\'mkoenig\', \'konigmatt@googlemail.com\'), (\'janekg89\', \'janekg89@hotmail.de\'))"\nALLOWED_HOSTS = [\'*\']\nAPI_BASE = \'********************\'\nAPI_URL = \'********************\'\nAPPEND_SLASH = False\nAUTHENTICATION_BACKENDS = "(\'django.contrib.auth.backends.ModelBackend\', \'allauth.account.auth_backends.AuthenticationBackend\')"\nAUTH_PASSWORD_VALIDATORS = \'********************\'\nAUTH_USER_MODEL = \'users.User\'\nBASE_DIR = \'/code\'\nCACHES = {\'default\': {\'BACKEND\': \'django.core.cache.backends.locmem.LocMemCache\'}}\nCACHE_MIDDLEWARE_ALIAS = \'default\'\nCACHE_MIDDLEWARE_KEY_PREFIX = \'********************\'\nCACHE_MIDDLEWARE_SECONDS = 600\nCORS_ORIGIN_ALLOW_ALL = True\nCSRF_COOKIE_AGE = 31449600\nCSRF_COOKIE_DOMAIN = None\nCSRF_COOKIE_HTTPONLY = False\nCSRF_COOKIE_NAME = \'csrftoken\'\nCSRF_COOKIE_PATH = \'/\'\nCSRF_COOKIE_SAMESITE = \'Lax\'\nCSRF_COOKIE_SECURE = False\nCSRF_FAILURE_VIEW = \'django.views.csrf.csrf_failure\'\nCSRF_HEADER_NAME = \'HTTP_X_CSRFTOKEN\'\nCSRF_TRUSTED_ORIGINS = []\nCSRF_USE_SESSIONS = False\nDATABASES = {\'default\': {\'ENGINE\': \'django.db.backends.postgresql\', \'NAME\': \'postgres\', \'USER\': \'postgres\', \'HOST\': \'postgres\', \'PASSWORD\': \'********************\', \'PORT\': \'5432\', \'ATOMIC_REQUESTS\': False, \'AUTOCOMMIT\': True, \'CONN_MAX_AGE\': 0, \'OPTIONS\': {}, \'TIME_ZONE\': None, \'TEST\': {\'CHARSET\': None, \'COLLATION\': None, \'NAME\': None, \'MIRROR\': None}}}\nDATABASE_ROUTERS = []\nDATA_UPLOAD_MAX_MEMORY_SIZE = 2621440\nDATA_UPLOAD_MAX_NUMBER_FIELDS = 1000\nDATETIME_FORMAT = \'N j, Y, P\'\nDATETIME_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\']\nDATE_FORMAT = \'N j, Y\'\nDATE_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\']\nDEBUG = True\nDEBUG_PROPAGATE_EXCEPTIONS = False\nDECIMAL_SEPARATOR = \'.\'\nDEFAULT_CHARSET = \'utf-8\'\nDEFAULT_CONTENT_TYPE = \'text/html\'\nDEFAULT_EXCEPTION_REPORTER_FILTER = \'django.views.debug.SafeExceptionReporterFilter\'\nDEFAULT_FILE_STORAGE = \'django.core.files.storage.FileSystemStorage\'\nDEFAULT_FROM_EMAIL = \'webmaster@localhost\'\nDEFAULT_INDEX_TABLESPACE = \'\'\nDEFAULT_TABLESPACE = \'\'\nDISALLOWED_USER_AGENTS = []\nDJANGO_CONFIGURATION = \'local\'\nELASTICSEARCH_DSL = {\'default\': {\'hosts\': \'elasticsearch:9200\'}}\nEMAIL_BACKEND = \'django.core.mail.backends.console.EmailBackend\'\nEMAIL_HOST = \'localhost\'\nEMAIL_HOST_PASSWORD = \'********************\'\nEMAIL_HOST_USER = \'\'\nEMAIL_PORT = 1025\nEMAIL_SSL_CERTFILE = None\nEMAIL_SSL_KEYFILE = \'********************\'\nEMAIL_SUBJECT_PREFIX = \'[Django] \'\nEMAIL_TIMEOUT = None\nEMAIL_USE_LOCALTIME = False\nEMAIL_USE_SSL = False\nEMAIL_USE_TLS = False\nFILE_CHARSET = \'utf-8\'\nFILE_UPLOAD_DIRECTORY_PERMISSIONS = None\nFILE_UPLOAD_HANDLERS = [\'django.core.files.uploadhandler.MemoryFileUploadHandler\', \'django.core.files.uploadhandler.TemporaryFileUploadHandler\']\nFILE_UPLOAD_MAX_MEMORY_SIZE = 2621440\nFILE_UPLOAD_PERMISSIONS = None\nFILE_UPLOAD_TEMP_DIR = None\nFIRST_DAY_OF_WEEK = 0\nFIXTURE_DIRS = []\nFORCE_SCRIPT_NAME = None\nFORMAT_MODULE_PATH = None\nFORM_RENDERER = \'django.forms.renderers.DjangoTemplates\'\nIGNORABLE_404_URLS = []\nINSTALLED_APPS = "(\'django.contrib.admin\', \'django.contrib.auth\', \'django.contrib.sites\', \'django.contrib.contenttypes\', \'django.contrib.sessions\', \'django.contrib.messages\', \'django.contrib.staticfiles\', \'bootstrap3\', \'allauth\', \'allauth.account\', \'allauth.socialaccount\', \'allauth.socialaccount.providers.github\', \'rest_framework\', \'rest_framework.authtoken\', \'django_filters\', \'rest_framework_swagger\', \'corsheaders\', \'django_elasticsearch_dsl\', \'django_elasticsearch_dsl_drf\', \'pkdb_app.users\', \'pkdb_app.studies\', \'pkdb_app.categorials\', \'pkdb_app.subjects\', \'pkdb_app.substances\', \'pkdb_app.interventions\', \'pkdb_app.outputs\', \'pkdb_app.comments\')"\nINTERNAL_IPS = "(\'172.18.0.1\',)"\nLANGUAGES = [(\'af\', \'Afrikaans\'), (\'ar\', \'Arabic\'), (\'ast\', \'Asturian\'), (\'az\', \'Azerbaijani\'), (\'bg\', \'Bulgarian\'), (\'be\', \'Belarusian\'), (\'bn\', \'Bengali\'), (\'br\', \'Breton\'), (\'bs\', \'Bosnian\'), (\'ca\', \'Catalan\'), (\'cs\', \'Czech\'), (\'cy\', \'Welsh\'), (\'da\', \'Danish\'), (\'de\', \'German\'), (\'dsb\', \'Lower Sorbian\'), (\'el\', \'Greek\'), (\'en\', \'English\'), (\'en-au\', \'Australian English\'), (\'en-gb\', \'British English\'), (\'eo\', \'Esperanto\'), (\'es\', \'Spanish\'), (\'es-ar\', \'Argentinian Spanish\'), (\'es-co\', \'Colombian Spanish\'), (\'es-mx\', \'Mexican Spanish\'), (\'es-ni\', \'Nicaraguan Spanish\'), (\'es-ve\', \'Venezuelan Spanish\'), (\'et\', \'Estonian\'), (\'eu\', \'Basque\'), (\'fa\', \'Persian\'), (\'fi\', \'Finnish\'), (\'fr\', \'French\'), (\'fy\', \'Frisian\'), (\'ga\', \'Irish\'), (\'gd\', \'Scottish Gaelic\'), (\'gl\', \'Galician\'), (\'he\', \'Hebrew\'), (\'hi\', \'Hindi\'), (\'hr\', \'Croatian\'), (\'hsb\', \'Upper Sorbian\'), (\'hu\', \'Hungarian\'), (\'hy\', \'Armenian\'), (\'ia\', \'Interlingua\'), (\'id\', \'Indonesian\'), (\'io\', \'Ido\'), (\'is\', \'Icelandic\'), (\'it\', \'Italian\'), (\'ja\', \'Japanese\'), (\'ka\', \'Georgian\'), (\'kab\', \'Kabyle\'), (\'kk\', \'Kazakh\'), (\'km\', \'Khmer\'), (\'kn\', \'Kannada\'), (\'ko\', \'Korean\'), (\'lb\', \'Luxembourgish\'), (\'lt\', \'Lithuanian\'), (\'lv\', \'Latvian\'), (\'mk\', \'Macedonian\'), (\'ml\', \'Malayalam\'), (\'mn\', \'Mongolian\'), (\'mr\', \'Marathi\'), (\'my\', \'Burmese\'), (\'nb\', \'Norwegian Bokm\xc3\xa5l\'), (\'ne\', \'Nepali\'), (\'nl\', \'Dutch\'), (\'nn\', \'Norwegian Nynorsk\'), (\'os\', \'Ossetic\'), (\'pa\', \'Punjabi\'), (\'pl\', \'Polish\'), (\'pt\', \'Portuguese\'), (\'pt-br\', \'Brazilian Portuguese\'), (\'ro\', \'Romanian\'), (\'ru\', \'Russian\'), (\'sk\', \'Slovak\'), (\'sl\', \'Slovenian\'), (\'sq\', \'Albanian\'), (\'sr\', \'Serbian\'), (\'sr-latn\', \'Serbian Latin\'), (\'sv\', \'Swedish\'), (\'sw\', \'Swahili\'), (\'ta\', \'Tamil\'), (\'te\', \'Telugu\'), (\'th\', \'Thai\'), (\'tr\', \'Turkish\'), (\'tt\', \'Tatar\'), (\'udm\', \'Udmurt\'), (\'uk\', \'Ukrainian\'), (\'ur\', \'Urdu\'), (\'vi\', \'Vietnamese\'), (\'zh-hans\', \'Simplified Chinese\'), (\'zh-hant\', \'Traditional Chinese\')]\nLANGUAGES_BIDI = [\'he\', \'ar\', \'fa\', \'ur\']\nLANGUAGE_CODE = \'en-us\'\nLANGUAGE_COOKIE_AGE = None\nLANGUAGE_COOKIE_DOMAIN = None\nLANGUAGE_COOKIE_NAME = \'django_language\'\nLANGUAGE_COOKIE_PATH = \'/\'\nLOCALE_PATHS = []\nLOGGING = {\'version\': 1, \'disable_existing_loggers\': False, \'formatters\': {\'django.server\': {\'()\': \'django.utils.log.ServerFormatter\', \'format\': \'[%(server_time)s] %(message)s\'}, \'verbose\': {\'format\': \'%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s\'}, \'simple\': {\'format\': \'%(levelname)s %(message)s\'}}, \'filters\': {\'require_debug_true\': {\'()\': \'django.utils.log.RequireDebugTrue\'}}, \'handlers\': {\'django.server\': {\'level\': \'INFO\', \'class\': \'logging.StreamHandler\', \'formatter\': \'django.server\'}, \'console\': {\'level\': \'DEBUG\', \'class\': \'logging.StreamHandler\', \'formatter\': \'simple\'}, \'mail_admins\': {\'level\': \'ERROR\', \'class\': \'django.utils.log.AdminEmailHandler\'}}, \'loggers\': {\'django\': {\'handlers\': [\'console\'], \'propagate\': True}, \'django.server\': {\'handlers\': [\'django.server\'], \'level\': \'INFO\', \'propagate\': False}, \'django.request\': {\'handlers\': [\'mail_admins\', \'console\'], \'level\': \'ERROR\', \'propagate\': False}, \'django.db.backends\': {\'handlers\': [\'console\'], \'level\': \'INFO\'}}}\nLOGGING_CONFIG = \'logging.config.dictConfig\'\nLOGIN_REDIRECT_URL = \'"http://0.0.0.0:8000"/#/account\'\nLOGIN_URL = \'"http://0.0.0.0:8000"/#/account\'\nLOGOUT_REDIRECT_URL = None\nLOGOUT_URL = \'rest_framework:logout\'\nMANAGERS = []\nMEDIA_ROOT = \'/media/\'\nMEDIA_URL = \'/media/\'\nMESSAGE_STORAGE = \'django.contrib.messages.storage.fallback.FallbackStorage\'\nMIDDLEWARE = "(\'django.middleware.security.SecurityMiddleware\', \'django.contrib.sessions.middleware.SessionMiddleware\', \'corsheaders.middleware.CorsMiddleware\', \'django.middleware.common.CommonMiddleware\', \'django.middleware.csrf.CsrfViewMiddleware\', \'django.contrib.auth.middleware.AuthenticationMiddleware\', \'django.contrib.messages.middleware.MessageMiddleware\', \'django.middleware.clickjacking.XFrameOptionsMiddleware\')"\nMIGRATION_MODULES = {}\nMONTH_DAY_FORMAT = \'F j\'\nNUMBER_GROUPING = 0\nPASSWORD_HASHERS = \'********************\'\nPASSWORD_RESET_TIMEOUT_DAYS = \'********************\'\nPREPEND_WWW = False\nREST_FRAMEWORK = {\'DEFAULT_PAGINATION_CLASS\': \'pkdb_app.pagination.CustomPagination\', \'PAGE_SIZE\': 20, \'PAGINATE_BY\': 10, \'PAGINATE_BY_PARAM\': \'page_size\', \'MAX_PAGINATE_BY\': 100, \'DATETIME_FORMAT\': \'%Y-%m-%dT%H:%M:%S%z\', \'DEFAULT_RENDERER_CLASSES\': (\'rest_framework.renderers.JSONRenderer\', \'rest_framework.renderers.BrowsableAPIRenderer\'), \'DEFAULT_PERMISSION_CLASSES\': [\'rest_framework.permissions.AllowAny\'], \'DEFAULT_AUTHENTICATION_CLASSES\': (\'rest_framework.authentication.SessionAuthentication\', \'rest_framework.authentication.TokenAuthentication\'), \'DEFAULT_FILTER_BACKENDS\': (\'django_filters.rest_framework.DjangoFilterBackend\',)}\nROOT_URLCONF = \'pkdb_app.urls\'\nSECRET_KEY = \'********************\'\nSECURE_BROWSER_XSS_FILTER = False\nSECURE_CONTENT_TYPE_NOSNIFF = False\nSECURE_HSTS_INCLUDE_SUBDOMAINS = False\nSECURE_HSTS_PRELOAD = False\nSECURE_HSTS_SECONDS = 0\nSECURE_PROXY_SSL_HEADER = None\nSECURE_REDIRECT_EXEMPT = []\nSECURE_SSL_HOST = None\nSECURE_SSL_REDIRECT = False\nSERVER_EMAIL = \'root@localhost\'\nSESSION_CACHE_ALIAS = \'default\'\nSESSION_COOKIE_AGE = 1209600\nSESSION_COOKIE_DOMAIN = None\nSESSION_COOKIE_HTTPONLY = True\nSESSION_COOKIE_NAME = \'sessionid\'\nSESSION_COOKIE_PATH = \'/\'\nSESSION_COOKIE_SAMESITE = \'Lax\'\nSESSION_COOKIE_SECURE = False\nSESSION_ENGINE = \'django.contrib.sessions.backends.db\'\nSESSION_EXPIRE_AT_BROWSER_CLOSE = False\nSESSION_FILE_PATH = None\nSESSION_SAVE_EVERY_REQUEST = False\nSESSION_SERIALIZER = \'django.contrib.sessions.serializers.JSONSerializer\'\nSETTINGS_MODULE = \'pkdb_app.settings\'\nSHORT_DATETIME_FORMAT = \'m/d/Y P\'\nSHORT_DATE_FORMAT = \'m/d/Y\'\nSIGNING_BACKEND = \'django.core.signing.TimestampSigner\'\nSILENCED_SYSTEM_CHECKS = []\nSITE_ID = 1\nSOCIALACCOUNT_PROVIDERS = {\'github\': {\'SCOPE\': [\'email\'], \'METHOD\': \'oauth2\'}}\nSTATICFILES_DIRS = [\'/code/pkdb_app/static\']\nSTATICFILES_FINDERS = "(\'django.contrib.staticfiles.finders.FileSystemFinder\', \'django.contrib.staticfiles.finders.AppDirectoriesFinder\')"\nSTATICFILES_STORAGE = \'django.contrib.staticfiles.storage.StaticFilesStorage\'\nSTATIC_ROOT = \'/static\'\nSTATIC_URL = \'/static/\'\nSWAGGER_SETTINGS = {\'LOGIN_URL\': \'rest_framework:login\', \'LOGOUT_URL\': \'rest_framework:logout\', \'USE_SESSION_AUTH\': True, \'DOC_EXPANSION\': \'list\', \'APIS_SORTER\': \'********************\', \'SECURITY_DEFINITIONS\': {\'basic\': {\'type\': \'basic\'}}}\nTEMPLATES = [{\'BACKEND\': \'django.template.backends.django.DjangoTemplates\', \'DIRS\': [\'/code/pkdb_app/static\', \'/code/pkdb_app/templates\'], \'APP_DIRS\': True, \'OPTIONS\': {\'context_processors\': [\'django.template.context_processors.debug\', \'django.template.context_processors.request\', \'django.contrib.auth.context_processors.auth\', \'django.contrib.messages.context_processors.messages\']}}]\nTEST_NON_SERIALIZED_APPS = []\nTEST_RUNNER = \'django.test.runner.DiscoverRunner\'\nTHOUSAND_SEPARATOR = \',\'\nTIME_FORMAT = \'P\'\nTIME_INPUT_FORMATS = [\'%H:%M:%S\', \'%H:%M:%S.%f\', \'%H:%M\']\nTIME_ZONE = \'UTC\'\nUSE_I18N = False\nUSE_L10N = True\nUSE_THOUSAND_SEPARATOR = False\nUSE_TZ = True\nUSE_X_FORWARDED_HOST = False\nUSE_X_FORWARDED_PORT = False\nWSGI_APPLICATION = \'pkdb_app.wsgi.application\'\nX_FRAME_OPTIONS = \'SAMEORIGIN\'\nYEAR_MONTH_FORMAT = \'F Y\'\n\n\nYou\'re seeing this error because you have DEBUG = True in your\nDjango settings file. Change that to False, and Django will\ndisplay a standard page generated by the handler for this status code.\n\n'
occurs if same intervention is defined twice