Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Fields for previewing image and video uploaded files

Project description

django-filepreviewfields
========================

> Fields for previewing image and video uploaded files

Installation
------------

```sh
pip install django-filepreviewfields
```

Adding to installed apps
------------------------

- To use file preview fields, you have to add it to your INSTALLED_APPS on your project's settings.py so the needed static files can be loaded:

```python
INSTALLED_APPS = (
...
'filepreviewfields',
)
```

Using SortedManyToManyField
---------------------------

- To use SortedManyToMany field, just create a field as if you were adding the default ManyToMany

```python
from django.db import models
from filepreviewfields.fields import ImagePreviewField, VideoPreviewField

class Movie(models.Model):
...
cover = ImagePreviewField()
video = VideoPreviewField()

```

License
-------

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-filepreviewfields, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django-filepreviewfields-0.1.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page