check your urls.py file to make sure you haven't imported circularly. or better still, paste your urls.py here
On Wed, Apr 17, 2024 at 4:47 PM Ana Jiménez <anaturne...@gmail.com> wrote: > hi guys, so i'm doing a project and there's a part that says i need to do > the migrations but when i do that i get this error > "Traceback (most recent call last): > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", > line 717, 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 "manage.py", line 22, in <module> > main() > File "manage.py", line 18, in main > execute_from_command_line(sys.argv) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py", > line 442, in execute_from_command_line > utility.execute() > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py", > line 436, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py", > line 412, in run_from_argv > self.execute(*args, **cmd_options) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py", > line 453, in execute > self.check() > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py", > line 485, in check > all_issues = checks.run_checks( > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py", > line 88, in run_checks > new_errors = check(app_configs=app_configs, databases=databases) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py", > line 14, in check_url_config > return check_resolver(resolver) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py", > line 24, in check_resolver > return check_method() > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", > line 495, in check > messages.extend(check_resolver(pattern)) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py", > line 24, in check_resolver > return check_method() > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", > line 494, in check > for pattern in self.url_patterns: > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/utils/functional.py", > line 57, in __get__ > res = instance.__dict__[self.name] = self.func(instance) > File > "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", > line 725, in url_patterns > raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e > django.core.exceptions.ImproperlyConfigured: The included URLconf '<module > 'djangoapp.urls' from > '/home/project/xrwvm-fullstack_developer_capstone/server/djangoapp/urls.py'>' > does not appear to have any patterns in it. If you see the 'urlpatterns' > variable with valid patterns in the file then the issue is probably caused > by a circular import. " > > and i don't know how to solve it :( i'm a beginner in django i need helppp > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- I don't stop when I'm tired, I only stop when the job is done. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABFHQYzEBjdmvmrePg2YYuT%2BfJdYtXrxm6qhrpebH8CP4_z3_Q%40mail.gmail.com.