AttributeError: 'str' object has no attribute 'regex' django 1.9

前端 未结 4 1293
无人共我
无人共我 2021-02-19 22:28

I am working with django 1.9 and I am currently coding - in Windows Command Prompt - python manage.py makemigrations and the error:

AttributeErr

4条回答
  •  天涯浪人
    2021-02-19 22:57

    Remove the beginning empty Url patterns and also remove

    django.conf.urls.handler400,    
    

    from your urls.py this will solve your problem.

提交回复
热议问题