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.4.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for drf_file_upload-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb87781f49fcbd279714c8b647d93bca950d414d4f7769c181df3c7f473868c3 |
|
MD5 | ccae2c4656692eafb6ed63c14bba7213 |
|
BLAKE2b-256 | 90af242aa995191d9febfb8e4b05a1d11e342c27748dae72f5ad9a0751ba22a0 |