当前位置: 首页 > 面试题库 >

ImportError: cannot import name patterns

欧阳永宁
2023-03-14
问题内容

Python Version: 2.7.5

Django Version: 1.10

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

enter image description
here

I have googled and someone told me to vi urls.py, but it doesn’t work.
Another error occurred which shows that cannot import name default.


问题答案:

Use of patterns is deprecated since django 1.8. See
docs. You can use
plain lists now.



 类似资料:

相关阅读

相关文章

相关问答