A file stream application for DjangoRestFramework
Project description
A file stream application for DjangoRestFramework
Installation
python3 -m pip install drf_filestream
Usage
- edit
project/settings.py
from rest_framework import permissions
INSTALL_APPS += [
'drf_filestream',
]
MEDIA_ROOT = 'data/' # default: /
FILE_ACCESS_PERMISSIONS = [permissions.IsAuthenticated]
Demo
git clone https://github.com/suqingdong/drf_filestream.git
cd demo
python3 -m pip install -r requirements.txt
python3 manage.py createsuperuser
python3 manage.py runserver
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_filestream-1.0.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for drf_filestream-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4da2f1221b8ba16cc4758931202fb9533eb55f59cacbdc66a9c745944c9996 |
|
MD5 | d15a6272352f648cd7e335722441d0ad |
|
BLAKE2b-256 | 5df115e0418a72b015bf16092be89766cab507267f1e5acc2a07445336c832d7 |