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

前端 未结 11 1482
孤街浪徒
孤街浪徒 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:22

    If your builds on TravisCI are failing for this particular reason, you can resolve the issue by updating the Django Extensions in your requirements.txt

    pip install --upgrade django-extensions
    

    This will update the extensions to use Django 2+ modules.

提交回复
热议问题