Closed hernansaa closed 3 weeks ago
Ok, silly me. I forgot to put the "unfold.contrib.forms" in installed apps in settings.py.
"unfold.contrib.forms" added in settings.py
INSTALLED_APPS = [
"unfold.apps.BasicAppConfig", # <- Custom app config, not overriding default admin
"unfold.contrib.filters", # optional, if special filters are needed
"unfold.contrib.forms", # optional, if special form elements are needed
"unfold.contrib.inlines", # optional, if special inlines are needed
"unfold.contrib.import_export", # optional, if django-import-export package is used
"unfold.contrib.guardian", # optional, if django-guardian package is used
"unfold.contrib.simple_history", # optional, if django-simple-history package is used
'home',
'django.contrib.admin',
'gs_admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
What version of Unfold are you using?
For example: 0.37.0
What version of Django are you using?
5.0.6
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
Yes
Describe your issue
When I override form fields to replace TextField for WysiwygWidget I get TemplateDoesNotExist .
I have the feeling that is related to the loaders.py (I am using unfold together with the django admin and followed this insctrucctions: https://unfoldadmin.com/blog/migrating-django-admin-unfold/).
It seems that the templates loader is not looking at the right path (See image below: Templete Loader Postmortem). It actually doesn't even invoke the custom loader (i don't even know if it should, but I mention it anyways.)
Any help is greatly appreciated.
ERROR If I copy and paste the wysiwyghtml and related helper files in one of those paths I don't get the error but the widget does not show properly.
settings.py templates configuration
loaders.py
admin.py