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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-i18n-utils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f2c6a932145c06f89f4551871219b023fd0012dd7ea4590ae9289c7bf904e417
MD5 7c51bb71ab9b2ef69c1747aeb1d0a9c2
BLAKE2b-256 3ceec12f6dc7bd3577a75d55a387cba16b590286db7b33b93bd07be79c1072ad

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