Skip to content

django utilities to easy to store webcam snaphot in ImageField ( ie Facebook Profile )

License

Notifications You must be signed in to change notification settings

lingrlongr/django-webcam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-webcam

django fields and templetags to store easier webcam snaphot in ImageField ( ie Facebook Profile )

Note

It use the jquery.webcam plugin from Robert Eisele (robert@xarg.org)

Examples

models.py:

class Person(models.Model):
    picture = CameraField(upload_to='photos', blank=True)

urls.py:

sec('/picture/(?P<pk>\d+)/$'),
    CameraView.as_view(target='registration.Person.picture'), name='picture-mgm')

your template:

{% load webcam %}

{% url "picture-mgm" object.pk as picmgm %}
{% url "camera" object.picture as default_image %}
{% camera  picmgm default_image %}

Links

About

django utilities to easy to store webcam snaphot in ImageField ( ie Facebook Profile )

Resources

License

Stars

Watchers

Forks

Packages

No packages published