What's Changed
* auto setup, refactored caching, removed lru by wrabit in https://github.com/wrabit/django-cotton/pull/8
Auto configuration
Inspired by Carlton's package "Template Partials", the package now attempts auto-configures your `settings.py` by default.
Migration guide
- If you previously modified your `loaders` and added cotton's loader, you can now remove the loader key altogether.
- Additionally if you want to cleanup more, you can remove `django_cotton.templatetags.cotton` from `builtins`.
You can of course leave them there if you prefer.
If you alternatively need to define custom `loaders` then reach for using `django_cotton.apps.SimpleAppConfig` in `INSTALLED_APPS` instead and this will allow you define the builtin `django_cotton.templatetags.cotton` and loader `django_cotton.cotton_loader.Loader` as you need. **If manually configuring, it's advised you wrap Cotton's loader in the Django cached loader for minor optimal performance**
Possible breaking change ⚠️
Because this changes the default behaviour, there may well be some edge cases if you have already got a custom `loader` definition so please test this before deploying to any production environments.
**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.28...v0.9.29