Extend Django with L10N features.
Project description
# Django L10N extensions Django L10N extensions adds some useful L10N extensions to the Django framework
The project in maintained on [github](https://github.com/ceasaro/django-l10n-extensions)
[Read the docs](http://django-l10n-extensions.readthedocs.io)
## Create new distribution To create a new distribution from this package follow these steps: 1) create new virualenv met python 3 mkvirtualenv -p /usr/bin/python3 django-l10n-extensions 2) install requirements pip install -r setup/requirements.txt 3) update the version in ./setup.py, otherwise you will overwrite an already existing version. 4) Make a new distribution run: python setup.py sdist bdist_wheel 5) Optional upload to pypi TEST: twine upload –repository-url https://test.pypi.org/legacy/ dist/*
to upload to PRODUCTION remove the –repository-url argument (make sure your local ~/.pypirc is correct)
# Date and time in python CONCEPT version
Always work in UTC and use date / datetime aware instances
e.g. python 3 datetime.utcfromtimestamp(0).timestamp() –> -3600 # datetime instance has no timezone and python fallback on OS timezone
datetime.utcnow() is also timezone unaware use datetime.utc(tz=timezone.utc)
datetime.strptime(“1970-0101T00:00:00”, “%Y-%m-%dT%H:%M:%S) is also timezone unaware use datetime.strptime(“1970-0101T00:00:00”, “%Y-%m-%dT%H:%M:%S).replace(tzinfo=timezone.utc)
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
Built Distribution
Hashes for django-l10n-extensions-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a183de58171d35533ccb54c44d2707a1e6e0a285492b0fa3c8eb24b926b3bc2 |
|
MD5 | 29936dd64dad3284a5c7ba10bb39a020 |
|
BLAKE2b-256 | da6a385511ab404b9fbf796430d12f583b297c0e6a84912bd1822609d5098d7d |
Hashes for django_l10n_extensions-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9c9618cd7c171f05478ac66b69e3cc13f8ed1da1c8cd57b8475f7853a26a55 |
|
MD5 | 04df97736ea178a6a1182f8e405992e5 |
|
BLAKE2b-256 | 2a63ccd791ead3af1bd28f591202529668b60c73ec6eb8b6640a987bd7f3b9db |