Skip to content
Advertisement

If you see valid patterns in the file then the issue is probably caused by a circular import in django

I am getting this error “If you see valid patterns in the file then the issue is probably caused by a circular import in”. I saw other stack flow questions and I know the error is coming from views.py but I cannot seem to figure out where the error is

Folder structure

views.py/myapp

JavaScript

urls.py/myapp

JavaScript

urls.py/myproject

JavaScript

The above exception was the direct cause of the following exception:

JavaScript

Advertisement

Answer

Could you please just change urlpattern to urlpatterns in urls.py/myapp and see if that solves your problem.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement