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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_i18n_utils-1.2.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c04f42b8a484e538154d0f29ad30238dba0fbcfd528a47f42c95aff58fa67d7 |
|
MD5 | 801ffb2a77bbb4c00e2ac2d0a8c03afa |
|
BLAKE2b-256 | a7500dd00cf65c989a7dc259709a04ee1c263b80be5362eceb8bc6549fd4fa35 |