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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:07:30+00:00 2026-05-28T15:07:30+00:00

If you have 2 views, the first uses modelform that takes inputted information from

  • 0

If you have 2 views, the first uses modelform that takes inputted information from the user (date of birth, name, phonenumber, etc), and the second uses this information to create a table.

How would you pass the created object in the first view to the next view so you can use it in the second view’s template

I’d appreciate any help you can share

  • 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-28T15:07:31+00:00Added an answer on May 28, 2026 at 3:07 pm

    One approach is to put the object into a session in your first view, which you could then retrieve from the request.session in the second view.

    def first_view(request):
        my_thing = {'foo' : 'bar'}
        request.session['my_thing'] = my_thing
        return render(request, 'some_template.html')
    
    def second_view(request):
        my_thing = request.session.get('my_thing', None)
        return render(request, 'some_other_template.html', {'my_thing' : my_thing})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two views that I would like to combine into one. The first
One of my views uses 3 action sheets that come from when various buttons
I have an application that uses images from web a a source. for my
I have an older ASP.NET MVC application that uses classic web forms views. As
I have a view that is joining two tables and ordering by the first
I have two view controllers that allow changes to the Address Book. The first
I have 5 views in my ASP.NET MVC application. Some data were captured from
I have two views, one view takes the whole screen, the second view covers
I have an application that uses OAuth whose logic is something like this: If
I have a multi-threaded app that uses Core Data. I've been seeing a lot

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.