[Answered ]-Django-autocomplete-url invalid URL

2👍

The problem is that you have terminated your including URL with “$”, so nothing after that can match. Change it to:

url(r'^profile/autocomplete', ...)

without the $.

Note that the most recent versions of Django raise a warning when you do this.

0👍

In your urls.py file, try changing this:

url(r'^profile/autocomplete$', include('autocomplete_light.urls'), name='autocomplete')

to this:

url(r'^profile/autocomplete$', include('autocomplete_light.urls', name='autocomplete'))

It might need to be namespace instead of name, I’m not certain.

Leave a comment