Skip to main content
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

Release files for django-filepreviewfields 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-filepreviewfields 0.1.2
File Size Uploaded
django-filepreviewfields-0.1.2.tar.gz 3.3 kB Details

Release files / django-filepreviewfields-0.1.2.tar.gz

Download URL django-filepreviewfields-0.1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
acefa28c8328d6da6692c665112b9e773f2976317b70d41e95c69308c7d1a617
BLAKE2b-256 checksum
How to use checksums
91c880d6ad296002c51b1a128811cf2af25c21ce416a2154a02425a005b93243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page