Skip to main content

Utilities for localized Django projects

Project description

Data Processing

clean_unicode

utils.clean_unicode accepts an input string and returns normalized Unicode

UnicodeNormalizerMixin

Model mixin class which ensures that every text field has been processed with clean_unicode during model validation’s clean_fields step

Testing

LocalizedTestCase

Django TestCase subclass which makes it easy to create per-language tests without duplication or for-loops:

class MyLocalizedTests(LocalizedTestCase):
    def test_homepage(self):
        …

will execute and display as if you had really created this:

class MyLocalizedTests(LocalizedTestCase):
    def test_homepage_en(self):
        … # test English
    def test_homepage_es(self):
        … # test Spanish

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-i18n-utils-1.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

django_i18n_utils-1.2.0-py27-none-any.whl (5.7 kB view details)

Uploaded Python 2.7

File details

Details for the file django-i18n-utils-1.2.0.tar.gz.

File metadata

File hashes

Hashes for django-i18n-utils-1.2.0.tar.gz
Algorithm Hash digest
SHA256 cc951aa04bd7a523a1d961be94f176d16cfa3a3ad3d8b3b1402bc2a597626336
MD5 54ab938e08d05c6d5287f6b1546187a2
BLAKE2b-256 e4cac55a880ca9fe18568711719e1b65a1b8a7bcc723fd9e8ae531398f38d149

See more details on using hashes here.

File details

Details for the file django_i18n_utils-1.2.0-py27-none-any.whl.

File metadata

File hashes

Hashes for django_i18n_utils-1.2.0-py27-none-any.whl
Algorithm Hash digest
SHA256 4c04f42b8a484e538154d0f29ad30238dba0fbcfd528a47f42c95aff58fa67d7
MD5 801ffb2a77bbb4c00e2ac2d0a8c03afa
BLAKE2b-256 a7500dd00cf65c989a7dc259709a04ee1c263b80be5362eceb8bc6549fd4fa35

See more details on using hashes here.

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