Import: cannot import name Patterns on Django

Asked

Viewed 1,642 times

3

The application on Django was working normally until I went to put Django-comments, first I installed it with the setup.py that came along, I believe that is what is causing the problem, then I put together the project folder and referenced in Settings.py

So when running the application it is returning:

In line 1: "from Django.conf.urls import Patterns, include, url"

Error: Import: cannot import name Patterns

Django v1.10

Python v2.7.9

  • How are the Iimports doing?

  • Refer to this? : from Django.conf.urls import Patterns, include, url

  • And if you try: from django.conf.urls import *

  • urlpatterns = Patterns(', Nameerror: name 'Patterns' is not defined

  • In this case the same error occurred as the first time

  • I see documentation and everything looks fine: https://docs.djangoproject.com/es/1.9/ref/urls/

Show 1 more comment

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.