A DRF app upload files easily
Project description
A library to simplify file upload with the Django Rest Framework
Quick start
Add “drf_file_upload” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'drf_file_upload', ]
Include the polls URLconf in your project urls.py like this:
path('upload/', include('drf_file_upload.urls')),
Run python manage.py migrate to create the file upload models.
Start the development server and visit http://127.0.0.1:8000/admin/ to create see uploaded files (you’ll need the Admin app enabled).
Run the cleanup management command deleted_expired_uploaded_files in a cron task or add a celery task
TODO: Improve https://docs.djangoproject.com/en/3.1/intro/reusable-apps/
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
drf_file_upload-0.0.3.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for drf_file_upload-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 850484c64d7273ceee981f5c2b43db7af824cfdcfaaaf88a187d4226df9463f5 |
|
MD5 | 454112522766555538ab617b82d0072a |
|
BLAKE2b-256 | ab7a700c58800b9c1cbab6ee1ebcdd5606dc7d67a4e21ca751737d36615cefdc |