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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:50:55+00:00 2026-06-02T18:50:55+00:00

Another question like this one was asked, but I don’t ‘like’ the answer (in

  • 0

Another question like this one was asked, but I don’t ‘like’ the answer (in reality it didn’t really answer the question in the first place): Can any one explain how can i pass arg or kwargs from redirect to another view?)

I have a view and need to redirect to another view (in another application) and still send an argument along. Currently I have:

return redirect('/projects/', login_error=error)

Which doesn’t work (the redirect happens but the argument doesn’t go through). Is it even possible to do this using redirect()? The documentation doesn’t have anything on it.

However, I also tried referring to the view without using a URL:

return redirect('projects.views.list_all', login_error=error)

But that doesn’t work either.

  • 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-02T18:50:57+00:00Added an answer on June 2, 2026 at 6:50 pm

    redirect returns an HTTP redirect to the supplied URL – that is, the browser receives a
    30x response and initiates a new request.

    To preserve state between the two requests, you either need to set a session variable (as per the other answer) or provide a query parameter, eg:

    return redirect('/projects/?login_error=error')
    

    You will then need to process the incoming request.GET parameter in the other view.

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

Sidebar

Related Questions

This question is similar to another one I asked , but whereas in that
My question was asked on this forum, but the answer didn't completely satisfy my
This question is like another , except that one is asked in the context
This question has been asked here in one form or another but not quite
I'm really sorry. This must seem like an incredibly stupid question, but unless I
This may look like the recent question that asked why Perl doesn't allow one-liners
I feel like this one has been asked before, but I'm unable to find
I know the question has been asked many times but I'd like an answer
First off, apologies if this question has been asked before but I couldn't find
I feel like I've seen this question asked before, but neither the SO search

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.