Skip to main content

Django app providing text input and textarea widgets with emoji picker

Project description

django-emoji-picker

Django app providing text input and textarea widgets with emoji picker. It's based on emoji-mart.

Screenshot

Screenshot

Usage

This package contains a Django app that provides two widgets:

  • EmojiPickerTextInput
  • EmojiPickerTextarea

Example

Installation

$ pip install django-emoji-picker

or

$ pipenv install django-emoji-picker

settings.py

INSTALLED_APPS = [
    ...,
    'emoji_picker',
]

<app>/admin/<model>.py (for use with Django Admin)

from emoji_picker.widgets import EmojiPickerTextInputAdmin, EmojiPickerTextareaAdmin


class YourModelForm(forms.ModelForm):
    short_text = forms.CharField(widget=EmojiPickerTextInputAdmin)
    long_text = forms.CharField(widget=EmojiPickerTextareaAdmin)

Building from source

$ yarn
$ yarn build

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-emoji-picker-0.0.6.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

django_emoji_picker-0.0.6-py3-none-any.whl (296.6 kB view hashes)

Uploaded Python 3

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