Search code examples
pythondjangopycharm

cannot import name 'url' from 'django.conf.urls'


I have been trying to makemigrations in my django project but I keep getting this error constanly even though I'm using path instead of url can someone please help me? The error is being caused by the froala_editor path but I don't understand why.

enter image description here enter image description here


Solution

  • as per django docs here:

    django.conf.urls.url() was deprecated since Django 3.1, and as per the release notes here, is removed in Django 4.0+.

    so you cannot use fedora_editor with django 4