https://github.com/steelkiwi/django-skd-tools
https://github.com/steelkiwi/django-skd-tools
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/steelkiwi/django-skd-tools
- Owner: steelkiwi
- License: mit
- Created: 2013-09-26T10:21:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T13:13:21.000Z (about 9 years ago)
- Last Synced: 2025-03-23T18:52:17.978Z (7 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 11
- Watchers: 16
- Forks: 38
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-skd-tools
================- basic install: `pip install django-skd-tools`
- install with `TypedFileField` support: `pip install django-skd-tools[TypedFileField]`Mixins
------`skd_tools.mixins`
- LoginRequiredMixin
- AjaxRequiredMixin
- AjaxMixin
- ActiveTabMixin
- ReadOnlyAdminMixinDecorators
------`skd_tools.decorators`
- cache_method
- cache_func
- get_or_default
- ajax_requiredUtils
-----`skd_tools.utils`
- image_path
- get_random_filename
- storage_factoryFields
-----`skd_tools.fields`
- TypedFileField
Max size taking MB(megabytes)
Example:```python
file = TypedFileField(
allowed_mimes=['application/pdf', 'image/png', 'image/jpeg',
'application/msword', 'application/zip'],
allowed_exts=['doc', 'docx', 'jpeg', 'jpg', 'png', 'pdf'],
max_size=10)
```