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
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