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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:06:02+00:00 2026-05-15T19:06:02+00:00

I have started using django very recently . I am building a service with

  • 0

I have started using django very recently . I am building a service with user login.
Login , I am sending as POST service. There is a template to render , once the user is logged in.
But the browser address is not getting updated.

eg : abc.com the root my form would be something like
“form action=”/login” …..>”

Once user press the login button browser URL wil be abc.com/login. After login I want the
url to be “abc.com” again .

Pls help me .

  • 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-15T19:06:02+00:00Added an answer on May 15, 2026 at 7:06 pm

    If you use the built-in Django authentication, you can redirect after login or logout by using the built-in functions. You can redirect to a specific page or you can redirect them to the page they were trying to access.

    For example, the doc above uses the following example in using the login_required decorator:

    from django.contrib.auth.decorators import login_required
    
    @login_required(redirect_field_name='redirect_to')
    def my_view(request):
        ...
    

    I highly recommend checking out the above doc. When I first setup Django’s authentication, I was impressed that it only took me about 30 minutes to set it up the way I wanted it, and most of that time was reading the above page.

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

Sidebar

Related Questions

I have started using https://github.com/omab/django-social-auth and been successfully able to login via twitter, google
I have started an app to post data to django using tastypie. However, I
I've recently started learning/using django; I'm trying to figure out a way to have
I have become very swamped by my django website since I have started using
I just started using django for development. At the moment, I have the following
we have just started using a git account of our Django website project so
I have started using SqLite recently, so I am relatively new to it. I
I have a blog written in Django, and I started using the basic Django
I have just started using django-cms so please forgive my newbieness. Every time i
I have made an online gallery using Python and Django. I've just started to

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.