A handwriting widget for django
Project description
Django Handwriting Widget
A handwriting widget for django
Installation
Install with pip
pip install django-handwriting-widget
Add this app to INSTALLED_APPS
in settings.py
INSTALLED_APPS = [
...
'handwriting',
]
Usage
Form
from django import forms
from handwriting.forms import HandwritingPad
from .models import Signature
class SignatureForm(forms.ModelForm):
class Meta:
model = Signature
fields = '__all__'
widgets = {
'image': HandwritingPad(),
}
Admin
from django.contrib import admin
from handwriting.admin import HandwritingPadModelAdmin
from .models import Signature
@admin.register(Signature)
class SignatureAdmin(HandwritingPadModelAdmin):
list_display = ('name', 'create_at')
or
from django.contrib import admin
from handwriting.admin import HandwritingPadAdminMixin
from .models import Signature
@admin.register(Signature)
class SignatureAdmin(HandwritingPadAdminMixin, admin.ModelAdmin):
list_display = ('name', 'create_at')
or
from django.contrib import admin
from .forms import SignatureForm
from .models import Signature
@admin.register(Signature)
class SignatureAdmin(admin.ModelAdmin):
form = SignatureForm
list_display = ('name', 'create_at')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-handwriting-widget-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ed2512390c6b1de9475f947d4b9fdbcebb8de79a0691f1329ed114fee4e341 |
|
MD5 | cda0d5c61bcc0129d8c07e6db0ab5449 |
|
BLAKE2b-256 | 2725235aa1ccf33e979593d4db0e279bdf7564932cef1589458f8986aaba44aa |
Close
Hashes for django_handwriting_widget-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2012e39e846471c0ad2e826a0f1723eee2fdd8ab95ca20f27763ddfa28dc67ee |
|
MD5 | 63103ead4fd2aeb71a909f0ccbb42ba7 |
|
BLAKE2b-256 | a90d4d58f362fc133204957b67addc2f7f9af5e565f864e96468bbe3e3583db9 |