========================
> 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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-filepreviewfields-0.1.2.tar.gz | 3.3 kB | Without provenance | Details for django-filepreviewfields-0.1.2.tar.gz |
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 |
Security for django-filepreviewfields 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.