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

Project details


Download files

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

Source Distribution

django-webcam-0.4.2.tar.gz (106.8 kB view details)

Uploaded Source

File details

Details for the file django-webcam-0.4.2.tar.gz.

File metadata

File hashes

Hashes for django-webcam-0.4.2.tar.gz
Algorithm Hash digest
SHA256 467fa216c8cc502e153a3d7f9535534e8c381692b47b0383f015d19d8a856d31
MD5 0f20c56c7337df9cb47e637371041e3f
BLAKE2b-256 8602371141051bc66a6da38689cbc52a71c846677ef0329a58f3ad69e7f83edb

See more details on using hashes here.

Supported by

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