Installation Issues
Unfold Not Appearing
Problem: After installing Unfold, the admin interface still shows the default Django admin. Solution:-
Check your
settings.py: -
Collect static files:
- Clear browser cache and hard refresh (Ctrl+Shift+R or Cmd+Shift+R)
Static Files Not Loading
Problem: Unfold interface appears broken with missing styles or icons. Solution:Template and Rendering Issues
Custom Templates Not Working
Problem: Custom template overrides are not being applied. Solution:Unfold uses its own template structure. Ensure you’re overriding the correct templates from the
unfold/templates/ directory.-
Check template directory structure:
-
Verify
TEMPLATESsetting:
Sidebar Not Showing
Problem: Sidebar navigation is not visible. Solution: Configure sidebar inUNFOLD settings:
Form and Widget Issues
Select2/Autocomplete Not Working
Problem: Autocomplete fields or Select2 dropdowns are not functioning. Solutions:Check jQuery version conflicts
Check jQuery version conflicts
Unfold includes jQuery. If your project loads a different jQuery version, conflicts may occur.Fix: Ensure only one jQuery version is loaded, preferably Unfold’s version.
Verify field configuration
Verify field configuration
For autocomplete fields:
Check browser console for errors
Check browser console for errors
Open browser DevTools (F12) and check the Console tab for JavaScript errors.
File Upload Widget Not Displaying
Problem: File or image upload widgets are not visible or styled incorrectly. Solution:ArrayField Widget Issues (PostgreSQL)
Problem: ArrayField is not rendering correctly. Solution: Use Unfold’s ArrayWidget:Inline and Fieldset Issues
Inlines Not Showing Tabs
Problem: Inline tabs are not displaying as expected. Solution: Configuretab attribute in your inline class:
Collapsed Fieldsets Not Working
Problem: Fieldsets withclasses = ['collapse'] are not collapsible.
Solution: Ensure you’re using Unfold’s fieldset structure:
Performance Issues
Slow Admin List Views
Problem: Changelist pages load slowly with many records. Solutions:-
Use select_related and prefetch_related:
-
Enable infinite pagination:
-
Reduce list_display fields:
Large Inline Sets
Problem: Change form is slow when there are many inline records. Solution: Use paginated inlines:Dark Mode Issues
Dark Mode Not Switching
Problem: Dark mode toggle doesn’t work. Solution:- Clear browser local storage
- Ensure JavaScript is enabled
- Check browser console for errors
Custom Styles Not Respecting Dark Mode
Problem: Custom CSS doesn’t adapt to dark mode. Solution: Use Tailwind’s dark mode classes:Integration Issues
django-import-export Not Styled
Problem: Import/Export pages don’t have Unfold styling. Solution: Ensure django-import-export is installed and configured:django-simple-history Issues
Problem: History pages not displaying correctly. Solution: Use Unfold’s SimpleHistoryAdmin:Third-Party Package Conflicts
Tailwind CSS Conflicts
Problem: Custom Tailwind classes conflicting with Unfold.Unfold uses Tailwind CSS 4.x. Ensure your custom Tailwind configuration is compatible.
Alpine.js Conflicts
Problem: Custom Alpine.js code interfering with Unfold. Solution: Unfold uses Alpine.js v3. Ensure your code is compatible:Production Issues
Assets Not Loading in Production
Problem: Static files work in development but not production. Checklist:Production Static Files Checklist
Production Static Files Checklist
-
DEBUG = Falsein settings -
STATIC_ROOTis correctly configured -
python manage.py collectstatichas been run - Web server is serving static files from
STATIC_ROOT -
ALLOWED_HOSTSincludes your domain - Static files have correct permissions (readable by web server)
CSRF Token Errors
Problem: Forms failing with CSRF token errors. Solution:Debugging Tips
Enable Django Debug Toolbar
Check Browser Console
Most JavaScript-related issues appear in the browser console:- Open DevTools (F12)
- Go to Console tab
- Look for error messages
Inspect Network Requests
For static file issues:- Open DevTools Network tab
- Refresh the page
- Look for failed requests (red status codes)
Getting Additional Help
If your issue isn’t covered here:FAQ
Frequently asked questions
Discord Community
Ask the community for help
GitHub Issues
Search existing issues or create a new one
Professional Support
Get expert assistance