Alex Alex - 12 days ago 12
Python Question

ImportError: cannot import name patterns

Python Version:2.7.5
django Version:1.10

when i type nohup python manage.py runserver 0.0.0.0:9001
show me enter image description here

i have googled someone tell me to vi urls.py,but it doesn't work ,Another error occurred shows that "cannot import name default"

help me,ths!

Answer

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

Comments