Skip to main content

A file stream application for DjangoRestFramework

Project description

PyPI GitHub last commit

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


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)

Uploaded Source

Built Distribution

drf_filestream-1.0.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page