Skip to content

A widget based on photobooth.js to take photos from the user's device camera.

Notifications You must be signed in to change notification settings

rsd/django-photobooth-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photobooth Widget

Usage

  • Add 'django_photobooth_widget' to INSTALLED_APPS.
  • Make sure 'APP_DIRS': True, enabled in TEMPLATES.
  • STATIC_ROOT needs to be ser to collect stati files with:

    $ python collectstatic

Options

Use django_photobooth_widget.PHOTOBOOTH_DB_SAVE_AS_BINARY to choose between binary and text (mime/base64) data. Defaults to binary.

Test Photobooth

  1. Create the virtualenv:

    $ virtualenv -p python3 venv
    $ source venv/bin/activate

  2. Install the requirements:

    $ pip install -r requirements.txt

  3. Update the database:

    $ python manage.py migrate

  4. To be able to use the, it needs to be in a HTTPS connection. Run the test server as this:

    $ python manage.py runserver_plus 9000 --cert-file cert.crt

About

A widget based on photobooth.js to take photos from the user's device camera.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published