I am using django 1.9 version and I wanted to implement ajax search in my application. In the documentation it is says to add the urls to the root url patterns.
url(r'^ajax_search/',include('ajax_search.urls')),`
Then I am getting an import error as follows:
File "/usr/local/lib/python2.7/dist-packages/django_ajax_search-1.5.1-py2.7.egg/ajax_search/urls.py", line 1, in <module>
from django.conf.urls.defaults import *
ImportError: No module named defaults
Can any one help me solve this issue?
django.conf.urls.defaultsis deprecated in Django 1.4, later removed in Django 1.6. Read this. And the package you are using has theurlsnot compatible with Django 1.9. According to the Django 1.9 documentation you should define yoururls.pyas,UPDATE:
You can modify your
urls.pyas below to make this working,