Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
django-robust-i18n-urls
Advanced tools
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.
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/
Clone this repo, then:
pip install -e .
pip install -r requirements.txt
python setup.py test
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.
FAQs
Robust internationalized urls implementation for Django.
We found that django-robust-i18n-urls demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.