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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:22:11+00:00 2026-05-22T21:22:11+00:00

I have the following user flow: 1) user registers. 2) user has a ‘getting_started’

  • 0

I have the following user flow:

1) user registers.

2) user has a ‘getting_started’ page where he fills out some basic info and adds a picture.

3) user activates his email and logs in

After a user has finished filling out his info on the getting started page, if he goes back to the page getting_started/, I want the user to be redirected to his home/. What would be the easiest way to accomplish this? (As a reference, similar to the LinkedIn or Facebook Sign Up flow).

The way that comes to mind for me is to set a global variable getting_started = 1 after the user fills out the getting_started page, and on the getting_started page, do —

if getting_started: 
    redirect to home/ 
else:
    ...(normal getting started view)...
  • 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-22T21:22:12+00:00Added an answer on May 22, 2026 at 9:22 pm

    Is it just the getting_started view/page that you want to redirect on? Don’t think in terms of global variables, think in terms of database fields!

    Once your user has signed up, they will be a registered user (if you are using djangos auth app) and they will have an entry in the database. Therefore you simply have to check to see if the user is registered already: if so, redirect, otherwise allow them to continue signing up.

    You could simply put a check at the start of the getting_started view to see if the user has already signed up

    from django.http import HttpResponseRedirect
    
    def getting_started_view(request):
        if request.user.is_authenticated():
            return HttpResponseRedirect(reverse('home_view'))
    

    where home_view is in your urls.py:

    url("...","someapp.views.viewname", name="home_view"),
    ...
    

    (or you could hard code the redirect)

    If you are looking for more complex redirects (maybe numerous pages that require a redirect to the home page) you should look at writing some middleware. This will allow you to intercept every request coming in, see if it’s to a certain page, and redirect.

    https://docs.djangoproject.com/en/dev/topics/http/middleware/?from=olddocs

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

Sidebar

Related Questions

I have the following domains: User, Role, Company. User and Role has m:n relationship,
I have a Windows program with the following flow: generated config file -> user
I have the following: User has_many Listings Listing has_many Offers Pretty basic. A user
I have the following user-control: <%@ Control Language=C# AutoEventWireup=true CodeFile=FadingMessage.ascx.cs Inherits=includes_FadingMessage %> <asp:PlaceHolder Visible=false
I have the following user control that is embedded within another user control. <UserControl.Resources>
So I have the following user defined type in my oracle database: CREATE OR
I have following code class User attr_accessor :name end u = User.new u.name =
I have the following situation: A user will define a certain filter on a
I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have the following model: class User: name = models.CharField( max_length = 200 )

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.