Django-cotton

Latest version: v2.0.3

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 11

0.9.29

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

0.9.28

What's Changed
* Revert "Fix dev cache" by wrabit in https://github.com/wrabit/django-cotton/pull/86


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.27...v0.9.28

0.9.27

What's Changed
* Fix dev cache by wrabit in https://github.com/wrabit/django-cotton/pull/84
* related: 83

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.26...v0.9.27

0.9.26

What's Changed
* Check for the presence of cotton tags before parsing which prevents unnecessary processing by wrabit in https://github.com/wrabit/django-cotton/pull/80


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.25...v0.9.26

0.9.25

What's Changed
* Fix case sensitive placeholder issue in connection with duplicate attribute handling mechanism by wrabit in https://github.com/wrabit/django-cotton/pull/79


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.24...v0.9.25

0.9.24

What's Changed
* Preserve spaces around tpl expressions by wrabit in https://github.com/wrabit/django-cotton/pull/78
* Introduces an internal cache versioning system so if a release would break cached and compiled versions, we can force the rebuild


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.23...v0.9.24

Page 8 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.