Skip to main content

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

Metadata

Release files for django-webcam 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-webcam 0.4.2
File Size Uploaded
django-webcam-0.4.2.tar.gz 106.8 kB Details

Release files / django-webcam-0.4.2.tar.gz

Download URL django-webcam-0.4.2.tar.gz
Size 106.8 kB
Tags Source
SHA-256 checksum
How to use checksums
467fa216c8cc502e153a3d7f9535534e8c381692b47b0383f015d19d8a856d31
BLAKE2b-256 checksum
How to use checksums
8602371141051bc66a6da38689cbc52a71c846677ef0329a58f3ad69e7f83edb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page