ImportError: cannot import name patterns

前端 未结 3 2069
迷失自我
迷失自我 2020-12-17 09:13

Python Version: 2.7.5

Django Version: 1.10

When I type nohup python manage.py runserver 0.0.0.0:9001 it shows

3条回答
  •  天命终不由人
    2020-12-17 09:51

    I ran into this error when trying to install Django-Guardian. Instead of downgrading Django, you can install the latest version of Django-Guardian. Try,

    pip install 'django-guardian>=1.4.6'
    

    This resolved the issue for me.

提交回复
热议问题