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

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

Note

based on jquery.webcam plugin from Robert Eisele (robert@xarg.org)

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

Project details


Download files

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

Files for django-webcam, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size django-webcam-0.4.2.tar.gz (106.8 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