Skip to main content

A Django app that simply provides unihandecode.js (https://github.com/ojii/unihandecode.js) out of box to be used along side with Django CMS.

Project description

A Django app that simply provides unihandecode.js (https://github.com/ojii/unihandecode.js) out of box to be used along side with Django CMS.

Installation

To get started using django-unihandecodejs:

  • install it with pip:

    $ pip install django-unihandecodejs
  • add the app to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'unihandecodejs',
        ...
    )

Usage

This app does nothing excepts injecting unihandecode.js as static files into your Django project. No specific usage is needed.

Most people just need unihandecode.js for their Django CMS project as they have East Asian languages on their sites. Due to licence issue, unihandecode.js isn’t included in Django CMS. You have to download and throw the codes of unihandecode.js into your project’s static file folder, which becomes a tedious step of each Django CMS site’s setup phase. That’s why this app is created: a simple pip install to replace download and copy.

Since this app is mainly used for Django CMS project, please refer to http://docs.django-cms.org/en/latest/reference/configuration.html#unicode-support-for-automated-slugs for configuration. For the impatient, just add the below lines into your settings.py:

CMS_UNIHANDECODE_HOST = '%sunihandecodejs/' % STATIC_URL

CMS_UNIHANDECODE_VERSION = '1.0.0'

CMS_UNIHANDECODE_DECODERS = ['zh'] #Change to your desired language list

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-unihandecodejs-0.1.0.tar.gz (1.5 MB view details)

Uploaded Source

File details

Details for the file django-unihandecodejs-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-unihandecodejs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 538fc71b9b736fd7717302c9cc46d46f943a4dac9e9d692e3b8e16f0f4ff169f
MD5 449f4be74eff260eb669b3f020fb1ee6
BLAKE2b-256 fdcd928402a7eb8753f9031e05717fa0693bb6a193fa7cc35bc9ca5afc28cf54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page