
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
django_languageselect
Advanced tools
Simple language select as custom template tag
"django.middleware.locale.LocaleMiddleware"
in MIDDLEWARE_CLASSES
/ MIDDLEWARE
"django.core.context_processors.request"
in TEMPLATE_CONTEXT_PROCESSORS
/ TEMPLATES['OPTIONS']['context_processors']
"django_languageselect"
to INSTALLED_APPS
To use django_languageselect in a project, add it to INSTALLED_APP
INSTALLED_APP = [
*INSTALLED_APP,
'django_languageselect',
]
Add this to your urls.py
urlpatterns = [
*urlpatterns,
url(r'^languageselect/', include('django_languageselect.urls')),
]
Use the languageselect tag where you which to show languages list:
{% load languageselect %}
{% languageselect %}
The only url provided by this application is "languageselect_index". Required GET-parameter is "language", optional GET-parameter is "next". Next contains the named url to redirect after the language change. This parameter is pre-filled with the current page url. Customization
Feel free to use your own template, just add languageselect/layer.html
Tests will be automatically run by travis on commit to master.
They can also be executed locally using docker-compose by running docker-compose up
This project makes use of RegioHelden's reusable GitHub workflows.
Make a new release by manually triggering the Open release PR
workflow.
FAQs
Simple language select as custom template tag
We found that django_languageselect 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.