ImportError: can not import name patterns in django

2

The application in django was working normally until I was putting django-comments, I first installed it with setup.py that came along, I believe that this is what is causing the problem, then I put it together with the project folder and referenced in settings.py

Then when running the application it is returning:

  

In line 1: "from django.conf.urls import patterns, include, url"

     

The error: ImportError: can not import name patterns

Django v1.10

Python v2.7.9

    
asked by anonymous 20.06.2016 / 23:13

1 answer

1

Probably when I did the setup build it updated the django version and the version I was using before should be less than 1.8. From version 1.8 the url looks like this:

link

    
21.06.2016 / 00:29