Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:22:10+00:00 2026-06-12T08:22:10+00:00

With Django version 1.5.dev17942 I have this setup: settings.py: MIDDLEWARE_CLASSES = ( ‘django.middleware.common.CommonMiddleware’, ‘django.middleware.locale.LocaleMiddleware’,

  • 0

With Django version 1.5.dev17942 I have this setup:

settings.py:

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',

    #'maintenancemode.middleware.MaintenanceModeMiddleware',
)

With urls.py:

urlpatterns = patterns('',
    # Api
    url(r'^api/bestSeller/', include('apps.pluginApi.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += i18n_patterns('',
    # Core:
    url(r'^$', views.index, name='home'),
    url(r'teleport/signup/(?P<plan>\w+)', views.teleport_signup, name="teleportSignup"),
    url(r'teleport/account$', views.teleport_account, name="teleportAccount"),
    url(r'teleport/login$', views.teleport_login, name="teleportLogin"),
    url(r'teleport', views.teleport, name="teleport"),
)

urlpatterns += staticfiles_urlpatterns()

When I use the template tag:

{% url 'teleportSignup' 'teleportplan1' %}

I get this url:

/es/es/teleport/signup/teleportplan1

Note that is twice “es”. The initial URL (that render the page) is /es/teleport.

I can’t see what is causing this. Or how avoid it..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:22:11+00:00Added an answer on June 12, 2026 at 8:22 am

    Was something really stupid. I have a dependency in https://bitbucket.org/carljm/django-localeurl, carried from the old project. This was ALSO generating locale urls, so the reason to have it twice…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Django flattening response after process_response? I have this model (simplified version): class Ticket(models.Model):
Short version: I have a Django project under development & testing (not yet into
I have a version controlled project located at ~/webapps/django/myproject and media files located at
I'm getting many failures from the CSRF Django middleware on my site (the version
I want to install some specific version of a package (in this case Django)
What does this mean? 1.0 or 1.1 ? >>> django.VERSION (1, 1, 1, 'final',
So I have installed Django on my FreeBSD 8.2 box like this: pip install
Since I have Django 1.1x on my Debian setup - how can I use
I have had many problems in Django (not all of them solved), but this
Using the Django-auth application (Django version 1.3), I want to have my login page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.