This is just a short post on how to use js-emoji in Django.
PMT has had
emoji support for a while through
No one ever uses it though, because users have no idea that their
comments go through a filter that renders text like
:tomato: into an image.
See where I've added
emoji code in
One thing to note is that js-emoji uses emoji images from
Initially, I had included the img-apple-64 and img-apple-160
directories in our django application, which comprise of over
100MB and over 3000 separate image files. This caused a timeout
problem in our deployment process, even after I manually uploaded
these files to S3 where the assets are stored. Fortunately,
js-emoji allows you to instead specify an emoji "sheet" using
use_sheet option. I removed the 3000 images and
I'm now using the apple sheets from emoji-data.