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
File details
Details for the file django-i18n-utils-1.2.0.tar.gz
.
File metadata
- Download URL: django-i18n-utils-1.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc951aa04bd7a523a1d961be94f176d16cfa3a3ad3d8b3b1402bc2a597626336 |
|
MD5 | 54ab938e08d05c6d5287f6b1546187a2 |
|
BLAKE2b-256 | e4cac55a880ca9fe18568711719e1b65a1b8a7bcc723fd9e8ae531398f38d149 |
File details
Details for the file django_i18n_utils-1.2.0-py27-none-any.whl
.
File metadata
- Download URL: django_i18n_utils-1.2.0-py27-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c04f42b8a484e538154d0f29ad30238dba0fbcfd528a47f42c95aff58fa67d7 |
|
MD5 | 801ffb2a77bbb4c00e2ac2d0a8c03afa |
|
BLAKE2b-256 | a7500dd00cf65c989a7dc259709a04ee1c263b80be5362eceb8bc6549fd4fa35 |