Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). Exception in thread django-main-thread: Traceback (most recent call last): File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string return cached_import(module_path, class_name) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/module_loading.py", line 16, in cached_import return getattr(module, class_name) AttributeError: module 'customers.middleware' has no attribute 'CustomerOnlyMiddleware' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/servers/basehttp.py", line 48, in get_internal_wsgi_application return import_string(app_path) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string return cached_import(module_path, class_name) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import module = import_module(module_path) File "/nix/store/jyvjawqnhnqhwrsinpvx1av7q2p2fcym-python3-3.10.18/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/home/runner/workspace/django_project/wsgi.py", line 16, in application = get_wsgi_application() File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application return WSGIHandler() File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/handlers/wsgi.py", line 118, in __init__ self.load_middleware() File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/handlers/base.py", line 40, in load_middleware middleware = import_string(middleware_path) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/module_loading.py", line 32, in import_string raise ImportError( ImportError: Module "customers.middleware" does not define a "CustomerOnlyMiddleware" attribute/class The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/nix/store/jyvjawqnhnqhwrsinpvx1av7q2p2fcym-python3-3.10.18/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/nix/store/jyvjawqnhnqhwrsinpvx1av7q2p2fcym-python3-3.10.18/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 139, in inner_run handler = self.get_handler(*args, **options) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 31, in get_handler handler = super().get_handler(*args, **options) File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 78, in get_handler return get_internal_wsgi_application() File "/home/runner/workspace/.pythonlibs/lib/python3.10/site-packages/django/core/servers/basehttp.py", line 50, in get_internal_wsgi_application raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: WSGI application 'django_project.wsgi.application' could not be loaded; Error importing module.