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 6179459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:40:04+00:00 2026-05-24T00:40:04+00:00

I use django-registration by James Bennett. To hook up it to my project I

  • 0

I use “django-registration” by James Bennett.
To hook up it to my project I have to write in my main url file:

(r'^users/', include('registration.urls')),

So then all urls of this app will be start with “users/”. It isn’t bad. But for “login” I want to use just home directory “/”.

How to do this without changing the “django-registration” source files?
I tried to use “redirect_to” in my main url file:

    url('users/login/$',
    'django.views.generic.simple.redirect_to',
    {'url': 'login/'}),

But it just adds “login/” to the end of “users/login/” and I get “user/login/login/.

  • 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-05-24T00:40:05+00:00Added an answer on May 24, 2026 at 12:40 am

    Probably you should just add

    (r'^login/', 'registration.views.name_of_login_view'),
    

    to your project main urls.py.

    Regarding your URL try using {‘url’: ‘/login/’} instead of {‘url’: ‘login/’}

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

Sidebar

Related Questions

I have a Django 1.4 project that makes use of django-registration which calls a
I have installed django-registration with pip, version 0.7. Then with urls.py from core.forms import
I have a datefield named pub_date in my django project. I want to use
Trying to add django-registration to my app. I have installed setup tools to use
Hello I'm a newbie trying to use django to register some users, I have
I have an app that makes use of 'django-registration' a custom built model named
I have been trying to use django-allauth to provide Social registration, but I am
I am making use of django-registration and django-profile to handle registration and profiles. I
I use django admin for my users to add their Model objects, as you
I am trying to use django-socialauth ( http://github.com/uswaretech/Django-Socialauth ) for authenticating users for my

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.