Skip to main content

django fields easy store webcam snaphot

Project description

django fields easy store webcam snaphot ( ie Facebook Profile )

  • Can store in database or filesystem

  • Support gif/jpeg/png

  • Manage multiple fields in the same page

  • Works in the admin as any other field

Examples

models.py:

from django.db import models
from webcam.fields import DBCameraField, FSCameraField
from webcam.storage import CameraFileSystemStorage

class Person(models.Model):
    picture1 = DBCameraField() # store in the database
    picture2 = FSCameraField(format='gif') # by default storen on settings.MEDIA_ROOT
    picture3 = FSCameraField(format='png',
                             storage=CameraFileSystemStorage('/absolute/path/to/'),
                             null=True, blank=True) # store on filesystem

Supported by

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