Exception in thread django-main-thread: Traceback (most recent call last): File…
- User
Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Python312\Lib\threading.py", line 1075, in _bootstrap_inner self.run() File "C:\Python312\Lib\threading.py", line 1012, in run self._target(*self._args, **self.kwargs) File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run self.check(display_num_errors=True) File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\core\management\base.py", line 486, in check all_issues = checks.run_checks( ^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\core\checks\registry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\core\checks\urls.py", line 136, in check_custom_error_handlers handler = resolver.resolve_error_handler(status_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\urls\resolvers.py", line 732, in resolve_error_handler callback = getattr(self.urlconf_module, "handler%s" % view_type, None) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\utils\functional.py", line 47, in get res = instance.dict[self.name] = self.func(instance) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\urls\resolvers.py", line 711, in urlconf_module return import_module(self.urlconf_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\importlib_init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in call_with_frames_removed File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\backend\core\urls.py", line 22, in path('api/',include('posts.api.urls')) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\django\urls\conf.py", line 39, in include urlconf_module = import_module(urlconf_module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\importlib_init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\backend\posts\api\urls.py", line 6, in user_router.register(r'posts',UserViewSet,"viewset") File "C:\Users\apala\OneDrive\Desktop\Contact_Mangement_Web\venv\Lib\site-packages\rest_framework\routers.py", line 54, in register basename = self.get_default_basename(viewset) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'get_default_basename'
- Assistant