-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoReverseMatch when using app namespace app_name='foo' #61
Comments
You should not have an app_name defined in your root So in # project urls
from django.urls import include, path
from autocomplete import HTMXAutoComplete
urlpatterns = [
path('', include('foo.urls')),
*HTMXAutoComplete.url_dispatcher("ac"),
] And in # foo.urls
from django.urls import path
from . import views
app_name = 'foo'
urlpatterns = [
path('', views.index(), name='index'),
] See https://stackoverflow.com/questions/61254816/what-is-the-purpose-of-app-name-in-urls-py-in-django |
I changed the code and now the error is different:
I made the same project structure on another machine and it is working there. But in this test project and the official project that I'm working on it's not working
|
Hi,
I'm having trouble implementing autocomplete in my project. When I added
app_name='foo'
tourls.py
, the autocomplete stopped working and the error message displayed wasNoReverseMatch for 'autocomplete_name'
. Did I miss something?The text was updated successfully, but these errors were encountered: