This application solves a few problems related with using internaitonalized
urls inside Django. If you want a full rationale please check out:
http://blog.karolmajta.com/robust-internationalized-urls-for-django.html
for an article explaining issues that arise when dealing with default
Django setup for internationalized urls.
## Usage
To use the app:
pip install django-robust-i18n-urls
In your `urls.py`, add to your `urlpatterns`:
url(r'^i18n/', include('robust_urls.urls')),
In your `settings.py`:
MIDDLEWARE_CLASSES = (
# ...
'robust_urls.middleware.RobustI18nLocaleMiddleware',
# ...
)
This should get you going with the default setup. Django's documentation
on translation and selecting language can help you.
For full documentation please see
http://django-robust-i18n-urls.readthedocs.org/
## Development
Clone this repo, then:
pip install -e .
pip install -r requirements.txt
python setup.py test
## TODO/Roadmap
Currently I don't need any more features beyond what is already provided,
but if you have ones that suit your use cases, feel free to issue a pull
request. Any additional tests are welcome too.
Metadata
Release files for django-robust-i18n-urls 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-robust-i18n-urls-1.0.0.tar.gz | 4.1 kB | Without provenance | Details for django-robust-i18n-urls-1.0.0.tar.gz |
Release files / django-robust-i18n-urls-1.0.0.tar.gz
| Download URL | django-robust-i18n-urls-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1a0d33a0ea7722ec29b63d96dffdd85fd6787448c020326378625df195fafc4
|
|
BLAKE2b-256 checksum How to use checksums |
20a69523cab089a7072b5ef249790b305ef4617cabf1e6855df52ed884dd8fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-robust-i18n-urls 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.