Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steelkiwi/django-skd-tools
https://github.com/steelkiwi/django-skd-tools
Last synced: 7 days 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 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T13:13:21.000Z (about 8 years ago)
- Last Synced: 2024-10-12T14:56:45.726Z (about 1 month ago)
- Language: Python
- Size: 16.6 KB
- Stars: 11
- Watchers: 17
- 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)
```