Custom Search

Wednesday, November 30, 2016

python django ImportError: No module named defaults

Error:
from django.conf.urls.defaults import *
ImportError: No module named defaults

Fix:
from django.conf.urls.defaults has been removed in latest version of django

Use following import statements
from django.conf.urls import *
from django.conf.urls import patterns, url, include



No comments:

Post a Comment