Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
What does an '_' in django url do?

what does an '_' in django url means like,

url(_(r'^mylink/'), include('link5.urls')),

_ plus a string should be an error but one public app is using such construct

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

_ is often a shortcut for a gettext function that will produce a localized version of the string. It's unusual to do it for URLs, but it's documented: https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#translating-url-patterns

At the top of the file you might find something like:

from django.utils.translation import ugettext as _
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!