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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:03:16+00:00 2026-05-22T19:03:16+00:00

I am trying to create a multi step form using model classes: my view:

  • 0

I am trying to create a multi step form using model classes:

my view:

# this is my tz_create view
def makingx(request):
    try:
        #this is to check if user has filled info already before
        dashprofile =  DashboardProfile.objects.get(user=request.user)
        #some view stuff
        context = {

        'user':user
         }
        return render_to_response(
        'done.html',
        context,
        context_instance = RequestContext(request),
         )

    except DashboardProfile.DoesNotExist:
        #some more stuff
        if request.method == "POST":
            if form.is_valid():
                #more view stuff
                request.session['created_busi'] = True

                return HttpResponseRedirect(reverse('tx_create'))
        else:
            return render_to_response(
                 'd12.html',
                 {
                  'user':user},

             context_instance = RequestContext(request)
               )

my tx_create view:

def promocamp(request):
    if 'created_info' not in request.session:
        return HttpResponseRedirect(
            reverse('tz_create')
        )

    user = request.user
    if request.method == "POST":
        if campaign.is_valid():
           #some stuff
            if 'next' in request.POST:
                next = request.POST['next']
            else:
                next = reverse('busi_create')
                return HttpResponseRedirect(next)
    return render_to_response(
            'd14.html',
            {'CampaignForm':campaign,
            'user':user},

                 context_instance = RequestContext(request)
                   )

Step needs to go from tz to tx create
However tx_create never seems to show up… what should i do / what could be the error?

  • 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-22T19:03:17+00:00Added an answer on May 22, 2026 at 7:03 pm

    From your code I see that return HttpResponseRedirect(reverse('tx_create')) is called on three conditions:

    1. DashboardProfile.DoesNotExist must be raised
    2. Request method must by “POST”
    3. form must be valid

    Just make sure that all three conditions are met. Use some debugging output in each of these conditions to see where the flow breaks.

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

Sidebar

Related Questions

I am trying to create a multi dimensional array using this syntax: $x[1] =
I'm trying to create a multi-view iOS (4.3) application in xcode 4 using the
I have been searching around for a way to create a multi step form
I'm trying to create a multi-level ajax form on my rails app that can
In a multi form .NetCF 3.5 application I'm trying create the forms in the
I'm new to jquery, but I'm trying to use it to create a multi-step
I am trying to create a multi-view app with navigation template. I want table
I am trying to create 3 table view cells using code (w/o nib). I
Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different
Trying to create a list to return some JSON data to a view. Following

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.