yaqwsx / Civilizace2

Game system for the second year of Civilizace
2 stars 0 forks source link

System umozni vybrat znovu stejny ukol a spadne #110

Closed JeeRik closed 3 years ago

JeeRik commented 3 years ago

IntegrityError at /action/throwdice/4

UNIQUE constraint failed: game_assignedtask.task_id, game_assignedtask.team_id
Request Method: | POST -- | -- http://localhost:8000/action/throwdice/4 3.0.6 IntegrityError UNIQUE constraint failed: game_assignedtask.task_id, game_assignedtask.team_id C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 396 C:\Users\Maara\Progs\Civilizace\venv\Scripts\python.exe 3.9.5 ['C:\\Users\\Maara\\Progs\\Civilizace', 'C:\\Program Files\\JetBrains\\PyCharm Community Edition ' '2021.1\\plugins\\python-ce\\helpers\\pydev', 'C:\\Users\\Maara\\Progs\\Civilizace', 'C:\\Program Files\\JetBrains\\PyCharm Community Edition ' '2021.1\\plugins\\python-ce\\helpers\\third_party\\thriftpy', 'C:\\Program Files\\JetBrains\\PyCharm Community Edition ' '2021.1\\plugins\\python-ce\\helpers\\pydev', 'C:\\Users\\Maara\\AppData\\Local\\JetBrains\\PyCharmCE2021.1\\cythonExtensions', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\\python39.zip', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\\DLLs', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\\lib', 'C:\\Users\\Maara\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv\\lib\\site-packages', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv\\lib\\site-packages\\win32', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Maara\\Progs\\Civilizace\\venv\\lib\\site-packages\\IPython\\extensions'] út, 15 Čen 2021 17:17:14 +0200

Traceback Switch to copy-and-paste view

  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in _execute
    1.                 return self.cursor.execute(sql, params)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\sqlite3\base.py in execute
    1.         return Database.Cursor.execute(self, query, params)
  • The above exception (UNIQUE constraint failed: game_assignedtask.task_id, game_assignedtask.team_id) was the direct cause of the following exception:

  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\core\handlers\exception.py in inner
    1.             response = get_response(request)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\core\handlers\base.py in _get_response
    1.                 response = self.process_exception_by_middleware(e, request)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\core\handlers\base.py in _get_response
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\views\generic\base.py in view
    1.             return self.dispatch(request, *args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\views\generic\base.py in dispatch
    1.         return handler(request, *args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\utils\decorators.py in _wrapper
    1.         return bound_method(*args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\contrib\auth\decorators.py in _wrapped_view
    1.                 return view_func(request, *args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\game\views\action.py in post
    1.             message += "<br>" + handleNewTasks(request, state, team,
  • C:\Users\Maara\Progs\Civilizace\game\views\action.py in handleNewTasks
    1.             AssignedTask.objects.create(
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\manager.py in manager_method
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\query.py in create
    1.         obj.save(force_insert=True, using=self.db)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\base.py in save
    1.         self.save_base(using=using, force_insert=force_insert,
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\base.py in save_base
    1.             updated = self._save_table(
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\base.py in _save_table
    1.             results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\base.py in _do_insert
    1.         return manager._insert(
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\manager.py in manager_method
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\query.py in _insert
    1.         return query.get_compiler(using=using).execute_sql(returning_fields)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\models\sql\compiler.py in execute_sql
    1.                 cursor.execute(sql, params)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in execute
    1.             return super().execute(sql, params)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in execute
    1.         return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in _execute_with_wrappers
    1.         return executor(sql, params, many, context)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in _execute
    1.                 return self.cursor.execute(sql, params)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\utils.py in __exit__
    1.                 raise dj_exc_value.with_traceback(traceback) from exc_value
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\utils.py in _execute
    1.                 return self.cursor.execute(sql, params)
  • C:\Users\Maara\Progs\Civilizace\venv\lib\site-packages\django\db\backends\sqlite3\base.py in execute
    1.         return Database.Cursor.execute(self, query, params)

Request information

USER

maara

GET

No GET data

POST

Variable | Value -- | -- csrfmiddlewaretoken | 'OcitrB7kEiWsd0oriUyyzKBCqaaNppktMXe8U9Kk6uUQBZVEGkUPNOmnZFxSVtx7' dice | 'die-spol' throwCount | '1' dotsCount | '9999' submit | ''

FILES

No FILES data

Variable | Value -- | -- csrftoken | 'awOFMXPVyj4rrfRh6IzSOFlDRTE4OS8E8hKkfvsV0v2PPeouu8V92J6oqo19kWli' io | 'Gpzrx7hvHxFnBi8BAAAC' sessionid | 'iwqte9q43u98mqv6msxkzcnai6bm04hd'

META

Variable | Value -- | -- ALLUSERSPROFILE | 'C:\\ProgramData' APPDATA | 'C:\\Users\\Maara\\AppData\\Roaming' COMMONPROGRAMFILES | 'C:\\Program Files\\Common Files' COMMONPROGRAMFILES(X86) | 'C:\\Program Files (x86)\\Common Files' COMMONPROGRAMW6432 | 'C:\\Program Files\\Common Files' COMPUTERNAME | 'DESKTOP-Q4H78BQ' COMSPEC | 'C:\\Windows\\system32\\cmd.exe' CONTENT_LENGTH | '134' CONTENT_TYPE | 'application/x-www-form-urlencoded' CSRF_COOKIE | 'awOFMXPVyj4rrfRh6IzSOFlDRTE4OS8E8hKkfvsV0v2PPeouu8V92J6oqo19kWli' DJANGO_SETTINGS_MODULE | 'civilizace.settings' DRIVERDATA | 'C:\\Windows\\System32\\Drivers\\DriverData' GATEWAY_INTERFACE | 'CGI/1.1' HOMEDRIVE | 'C:' HOMEPATH | '\\Users\\Maara' HTTP_ACCEPT | 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' HTTP_ACCEPT_ENCODING | 'gzip, deflate' HTTP_ACCEPT_LANGUAGE | 'en-US,en;q=0.5' HTTP_CONNECTION | 'keep-alive' HTTP_COOKIE | ('csrftoken=awOFMXPVyj4rrfRh6IzSOFlDRTE4OS8E8hKkfvsV0v2PPeouu8V92J6oqo19kWli; ' 'io=Gpzrx7hvHxFnBi8BAAAC; sessionid=iwqte9q43u98mqv6msxkzcnai6bm04hd') HTTP_HOST | 'localhost:8000' HTTP_ORIGIN | 'http://localhost:8000' HTTP_REFERER | 'http://localhost:8000/action/throwdice/4' HTTP_UPGRADE_INSECURE_REQUESTS | '1' HTTP_USER_AGENT | 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0' IDEA_INITIAL_DIRECTORY | 'C:\\Program Files\\JetBrains\\PyCharm Community Edition 2021.1\\bin' IDE_PROJECT_ROOTS | 'C:/Users/Maara/Progs/Civilizace' IPYTHONENABLE | 'True' LIBRARY_ROOTS | ('C:/Program ' 'Files/WindowsApps/PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0/DLLs;C:/Program ' 'Files/WindowsApps/PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0/Lib;C:/Users/Maara/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0;C:/Users/Maara/Progs/Civilizace/venv;C:/Users/Maara/Progs/Civilizace/venv/Lib/site-packages;C:/Users/Maara/Progs/Civilizace/venv/Lib/site-packages/win32;C:/Users/Maara/Progs/Civilizace/venv/Lib/site-packages/win32/lib;C:/Users/Maara/Progs/Civilizace/venv/Lib/site-packages/pythonwin;C:/Users/Maara/AppData/Local/JetBrains/PyCharmCE2021.1/python_stubs/-40011913;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/python-skeletons;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stdlib;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/jwt;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/six;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/mock;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/nmap;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/attrs;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/polib;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/retry;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/enum34;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/orjson;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/xxhash;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/chardet;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/futures;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/tzlocal;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/aiofiles;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/filelock;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/Markdown;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/paramiko;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/pathlib2;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/requests;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/waitress;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/Werkzeug;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/freezegun;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/ipaddress;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/pyRFC3339;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/typed-ast;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/cachetools;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/Deprecated;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/frozendict;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/contextvars;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/JACK-Client;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/atomicwrites;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/cryptography;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/click-spinner;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/DateTimeRange;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/pkg_resources;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/python-gflags;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/python-slugify;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/python-dateutil;C:/Program ' 'Files/JetBrains/PyCharm Community Edition ' '2021.1/plugins/python-ce/helpers/typeshed/stubs/typing-extensions') LOCALAPPDATA | 'C:\\Users\\Maara\\AppData\\Local' LOGONSERVER | '\\\\DESKTOP-Q4H78BQ' NUMBER_OF_PROCESSORS | '6' ONEDRIVE | 'C:\\Users\\Maara\\OneDrive' ONEDRIVECONSUMER | 'C:\\Users\\Maara\\OneDrive' OS | 'Windows_NT' PATH | ('C:\\Users\\Maara\\Progs\\Civilizace\\venv\\Scripts;C:\\Program Files ' '(x86)\\Common ' 'Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program ' 'Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program ' 'Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files ' '(x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program ' 'Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program ' 'Files\\TortoiseSVN\\bin;C:\\Program ' 'Files\\nodejs\\;C:\\Ruby27-x64\\bin;C:\\Users\\Maara\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Maara\\.dotnet\\tools;C:\\Users\\Maara\\AppData\\Local\\Programs\\Microsoft ' 'VS Code\\bin;C:\\Program Files (x86)\\GitHub ' 'CLI\\;C:\\Users\\Maara\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\Maara\\AppData\\Roaming\\npm') PATHEXT | '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW' PATH_INFO | '/action/throwdice/4' PROCESSOR_ARCHITECTURE | 'AMD64' PROCESSOR_IDENTIFIER | 'Intel64 Family 6 Model 158 Stepping 10, GenuineIntel' PROCESSOR_LEVEL | '6' PROCESSOR_REVISION | '9e0a' PROGRAMDATA | 'C:\\ProgramData' PROGRAMFILES | 'C:\\Program Files' PROGRAMFILES(X86) | 'C:\\Program Files (x86)' PROGRAMW6432 | 'C:\\Program Files' PROMPT | '(venv) $P$G' PSMODULEPATH | ('C:\\Program ' 'Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules') PUBLIC | 'C:\\Users\\Public' PYCHARM_HOSTED | '1' PYDEVD_LOAD_VALUES_ASYNC | 'True' PYTHON | 'C:\\Python27\\python.exe' PYTHONDONTWRITEBYTECODE | '1' PYTHONIOENCODING | 'UTF-8' PYTHONPATH | ('C:\\Users\\Maara\\Progs\\Civilizace;C:\\Program Files\\JetBrains\\PyCharm ' 'Community Edition ' '2021.1\\plugins\\python-ce\\helpers\\third_party\\thriftpy;C:\\Program ' 'Files\\JetBrains\\PyCharm Community Edition ' '2021.1\\plugins\\python-ce\\helpers\\pydev;C:\\Users\\Maara\\AppData\\Local\\JetBrains\\PyCharmCE2021.1\\cythonExtensions;C:/Users/Maara/Progs/Civilizace') PYTHONUNBUFFERED | '1' PYTHONUSERBASE | 'C:\\Users\\Maara\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages' QUERY_STRING | '' REMOTE_ADDR | '127.0.0.1' REMOTE_HOST | '' REQUEST_METHOD | 'POST' RUBYOPT | '-Eutf-8' RUN_MAIN | 'true' SCRIPT_NAME | '' SERVER_NAME | 'DESKTOP-Q4H78BQ' SERVER_PORT | '8000' SERVER_PROTOCOL | 'HTTP/1.1' SERVER_SOFTWARE | 'WSGIServer/0.2' SESSIONNAME | 'Console' SYSTEMDRIVE | 'C:' SYSTEMROOT | 'C:\\Windows' TEMP | 'C:\\Users\\Maara\\AppData\\Local\\Temp' TMP | 'C:\\Users\\Maara\\AppData\\Local\\Temp' USERDOMAIN | 'DESKTOP-Q4H78BQ' USERDOMAIN_ROAMINGPROFILE | 'DESKTOP-Q4H78BQ' USERNAME | 'Maara' USERPROFILE | 'C:\\Users\\Maara' VBOX_MSI_INSTALL_PATH | 'C:\\Program Files\\Oracle\\VirtualBox\\' VIRTUAL_ENV | 'C:\\Users\\Maara\\Progs\\Civilizace\\venv' WINDIR | 'C:\\Windows' _OLD_VIRTUAL_PATH | ('C:\\Program Files (x86)\\Common ' 'Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program ' 'Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program ' 'Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files ' '(x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program ' 'Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program ' 'Files\\TortoiseSVN\\bin;C:\\Program ' 'Files\\nodejs\\;C:\\Ruby27-x64\\bin;C:\\Users\\Maara\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Maara\\.dotnet\\tools;C:\\Users\\Maara\\AppData\\Local\\Programs\\Microsoft ' 'VS Code\\bin;C:\\Program Files (x86)\\GitHub ' 'CLI\\;C:\\Users\\Maara\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\Maara\\AppData\\Roaming\\npm') _OLD_VIRTUAL_PROMPT | '$P$G' wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> wsgi.file_wrapper | '' wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x000001E088315B50> wsgi.multiprocess | False wsgi.multithread | True wsgi.run_once | False wsgi.url_scheme | 'http' wsgi.version | (1, 0)

Settings

Using settings module civilizace.settings

Setting | Value -- | -- ABSOLUTE_URL_OVERRIDES | {} ADMINS | [] ALLOWED_HOSTS | [] APPEND_SLASH | True AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend') AUTH_PASSWORD_VALIDATORS | '********************' AUTH_USER_MODEL | 'game.User' BASE_DIR | 'C:\\Users\\Maara\\Progs\\Civilizace' CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} CACHE_MIDDLEWARE_ALIAS | 'default' CACHE_MIDDLEWARE_KEY_PREFIX | '********************' CACHE_MIDDLEWARE_SECONDS | 600 CRISPY_ALLOWED_TEMPLATE_PACKS | ('bootstrap', 'uni_form', 'bootstrap3', 'bootstrap4', 'tailwind') CRISPY_TEMPLATE_PACK | 'tailwind' CSRF_COOKIE_AGE | 31449600 CSRF_COOKIE_DOMAIN | None CSRF_COOKIE_HTTPONLY | False CSRF_COOKIE_NAME | 'csrftoken' CSRF_COOKIE_PATH | '/' CSRF_COOKIE_SAMESITE | 'Lax' CSRF_COOKIE_SECURE | False CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS | [] CSRF_USE_SESSIONS | False DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'C:\\Users\\Maara\\Progs\\Civilizace\\db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} DATABASE_ROUTERS | [] DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 DATETIME_FORMAT | 'N j, Y, P' 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'] DATE_FORMAT | 'N j, Y' 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'] DEBUG | True DEBUG_PROPAGATE_EXCEPTIONS | False DECIMAL_SEPARATOR | '.' DEFAULT_CHARSET | 'utf-8' DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL | 'webmaster@localhost' DEFAULT_INDEX_TABLESPACE | '' DEFAULT_TABLESPACE | '' DISALLOWED_USER_AGENTS | [] EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST | 'localhost' EMAIL_HOST_PASSWORD | '********************' EMAIL_HOST_USER | '' EMAIL_PORT | 25 EMAIL_SSL_CERTFILE | None EMAIL_SSL_KEYFILE | '********************' EMAIL_SUBJECT_PREFIX | '[Django] ' EMAIL_TIMEOUT | None EMAIL_USE_LOCALTIME | False EMAIL_USE_SSL | False EMAIL_USE_TLS | False FILE_CHARSET | 'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS | None FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 FILE_UPLOAD_PERMISSIONS | 420 FILE_UPLOAD_TEMP_DIR | None FIRST_DAY_OF_WEEK | 0 FIXTURE_DIRS | [] FORCE_SCRIPT_NAME | None FORMAT_MODULE_PATH | None FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' IGNORABLE_404_URLS | [] INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_extensions', 'guardian', 'game.apps.GameConfig', 'tailwind', 'theme.apps.ThemeConfig', 'ground.apps.GroundConfig', 'service.apps.ServiceConfig', 'crispy_forms', 'markdownify.apps.MarkdownifyConfig'] INTERNAL_IPS | [] LANGUAGES | [('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ål'), ('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'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] LANGUAGE_CODE | 'cs' LANGUAGE_COOKIE_AGE | None LANGUAGE_COOKIE_DOMAIN | None LANGUAGE_COOKIE_HTTPONLY | False LANGUAGE_COOKIE_NAME | 'django_language' LANGUAGE_COOKIE_PATH | '/' LANGUAGE_COOKIE_SAMESITE | None LANGUAGE_COOKIE_SECURE | False LOCALE_PATHS | [] LOGGING | {} LOGGING_CONFIG | 'logging.config.dictConfig' LOGIN_REDIRECT_URL | '/' LOGIN_URL | '/accounts/login/' LOGOUT_REDIRECT_URL | '/' MANAGERS | [] MARKDOWNIFY | {'default': {'WHITELIST_TAGS': ['a', 'abbr', 'acronym', 'b', 'blockquote', 'em', 'i', 'li', 'ol', 'p', 'strong', 'ul']}} MEDIA_ROOT | '' MEDIA_URL | '' MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', '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', 'game.models.generationTick.generationUpdateMiddleware'] MIGRATION_MODULES | {} MONTH_DAY_FORMAT | 'F j' NPM_BIN_PATH | 'C:/Program Files/nodejs/npm.cmd' NUMBER_GROUPING | 0 PASSWORD_HASHERS | '********************' PASSWORD_RESET_TIMEOUT_DAYS | '********************' PREPEND_WWW | False ROOT_URLCONF | 'civilizace.urls' SECRET_KEY | '********************' SECURE_BROWSER_XSS_FILTER | False SECURE_CONTENT_TYPE_NOSNIFF | True SECURE_HSTS_INCLUDE_SUBDOMAINS | False SECURE_HSTS_PRELOAD | False SECURE_HSTS_SECONDS | 0 SECURE_PROXY_SSL_HEADER | None SECURE_REDIRECT_EXEMPT | [] SECURE_REFERRER_POLICY | None SECURE_SSL_HOST | None SECURE_SSL_REDIRECT | False SERVER_EMAIL | 'root@localhost' SESSION_CACHE_ALIAS | 'default' SESSION_COOKIE_AGE | 1209600 SESSION_COOKIE_DOMAIN | None SESSION_COOKIE_HTTPONLY | True SESSION_COOKIE_NAME | 'sessionid' SESSION_COOKIE_PATH | '/' SESSION_COOKIE_SAMESITE | 'Lax' SESSION_COOKIE_SECURE | False SESSION_ENGINE | 'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE | False SESSION_FILE_PATH | None SESSION_SAVE_EVERY_REQUEST | False SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE | 'civilizace.settings' SHORT_DATETIME_FORMAT | 'm/d/Y P' SHORT_DATE_FORMAT | 'm/d/Y' SIGNING_BACKEND | 'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS | [] STATICFILES_DIRS | [] STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT | '_static' STATIC_URL | '/static/' TAILWIND_APP_NAME | 'theme' TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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']}}] TEST_NON_SERIALIZED_APPS | [] TEST_RUNNER | 'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR | ',' TIME_FORMAT | 'P' TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] TIME_ZONE | 'Europe/Prague' USE_I18N | True USE_L10N | True USE_THOUSAND_SEPARATOR | False USE_TZ | True USE_X_FORWARDED_HOST | False USE_X_FORWARDED_PORT | False WSGI_APPLICATION | 'civilizace.wsgi.application' X_FRAME_OPTIONS | 'DENY' YEAR_MONTH_FORMAT | 'F Y'

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 page generated by the handler for this status code.

yaqwsx commented 3 years ago

Užitečnější by bylo vědět, co jsi naklikal do kterého formuláře (jestli přes obecný výběr nebo selektivní výběr)

yaqwsx commented 3 years ago

Mělo by být opraveno v 2d11836e599dfdf2baee7f6e58fdb5a81e8ce051

JeeRik commented 3 years ago

Repro:

JeeRik commented 3 years ago

Mz bad, neprosel mi merge, tak se to jenom neprojevilo.