Django app for managing user files uploads and permissions
Project description
Django app for managing user files uploads, permissions and limits
Quickstart
Install Django User Images:
pip install django-user-images
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_user_images',
...
)
If you want to use it with DRF, use django-user-images.rest:
INSTALLED_APPS = (
...
'django_user_images.rest',
...
)
Configuration
USER_IMAGE_ONE_FILE_LIMIT - limit one file size upload in bytes
USER_IMAGES_LIMIT - limit total file size per user, static in bytes
USER_IMAGES_LIMITER - limit total file size per user, dynamic. Should be a string pointing to function, accepting user instance and returning limit in bytes
Credits
Tools used in rendering this package:
History
0.1.0 (2018-06-06)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-user-images-0.1.0.tar.gz
.
File metadata
- Download URL: django-user-images-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7fa08233577f115957bf7304ce465f7075ce55018bccae047bb42e26408479c |
|
MD5 | db84cb5836fef1f42b4ee4b96c1e35e1 |
|
BLAKE2b-256 | be582c673fbd731af83fd54a1a4cd9ef776bd6cf57940d82eed302c08e4c2370 |
File details
Details for the file django_user_images-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_user_images-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd7533917a2487b48351358aff32e22b3566c92cb81f52c045a10a0963a47413 |
|
MD5 | 00739f29aff0441e09b723845df63eb2 |
|
BLAKE2b-256 | ccebfe8656ccaadfb752ef212c74c3cd54935ce0978f701fbe55edf76e765868 |