ImportError: No module named 'django.core.urlresolvers'

前端 未结 11 1444
孤街浪徒
孤街浪徒 2020-11-27 14:04

I am working on Django project where I need to create a form for inputs. I tried to import reverse from django.core.urlresolvers. I got an error:

11条回答
  •  粉色の甜心
    2020-11-27 14:13

    In my case the problem was that I had outdated django-stronghold installed (0.2.9). And even though in the code I had:

    from django.urls import reverse
    

    I still encountered the error. After I upgraded the version to django-stronghold==0.4.0 the problem disappeard.

提交回复
热议问题