yinkh/django-popup-field

Reverse for '{%class_name}_popup_create' not found. '{%class_name}_popup_create' is not a valid view function or pattern name.

Opened this issue · 1 comments

I got this error while trying to use popup model. I guess ClassNameCRUDViewSet.urls() is not generating required urls. How can I solve this problem.

I had the same problem. Ensure you have:

ClassNamePopupCRUDViewSet.urls(),

in the top-level urls.py file (projectname/projectname/urls.py) file, rather than the urls.py for a particular app. Also, don't forget to include at the top of that urls.py:

from ClassName.popups import ClassNamePopupCRUDViewSet