Skip to content

diegorocha/django-filepreviewfields

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-filepreviewfields

Fields for previewing image and video uploaded files

Installation

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:
    INSTALLED_APPS = (
        ...
        'filepreviewfields',
    )

Using SortedManyToManyField

  • To use SortedManyToMany field, just create a field as if you were adding the default ManyToMany
    from django.db import models
    from filepreviewfields.fields import ImagePreviewField, VideoPreviewField

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

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 66.3%
  • JavaScript 22.1%
  • Makefile 6.3%
  • CSS 5.3%