Share your text data anonymously and free
(storefront) ┌──(kali㉿kali)-[~/Desktop/PythonProjects/storefront]
└─$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 600, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 950, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 888, in run
self._target(*self._args, **self._kwargs)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/management/commands/runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check
all_issues = checks.run_checks(
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 413, in check
messages.extend(check_resolver(pattern))
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 607, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'playground.urls' from '/home/kali/Desktop/PythonProjects/storefront/playground/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
/home/kali/Desktop/PythonProjects/storefront/playground/urls.py changed, reloading.
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 600, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 950, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 888, in run
self._target(*self._args, **self._kwargs)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/management/commands/runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check
all_issues = checks.run_checks(
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 413, in check
messages.extend(check_resolver(pattern))
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/kali/.local/share/virtualenvs/storefront-AHJtl7F2/lib/python3.9/site-packages/django/urls/resolvers.py", line 607, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'playground.urls' from '/home/kali/Desktop/PythonProjects/storefront/playground/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.