Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

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