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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:22:06+00:00 2026-05-20T07:22:06+00:00

I have been struggling to create a django form which users can fill and

  • 0

I have been struggling to create a django form which users can fill and the filled data gets saved in the database. I used the docs available for django modelforms but was unsuccessfull in building a working form. I even googled for howto’s about building a form that saves data to the database, there are hardly any available. When I tried to learn I ended up asking questions here (on this site). But however many questions I ask, I should be specific about my issue in the questions I ask, which means if one issue is solved (from the answers here) another issue is going to crop up. So my request is it would be a great help if some one could come up with a basic form using formsets with a relevant model (with a charfield, choicefield, radiofield, textarea) view, template (form and redirect), urls. And also a way to view the user-entered data in the admin page. At least whovever wants to build a django-form he/she can have something to begin with, which can be modified or improved upon without much hassel.

  • 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-20T07:22:07+00:00Added an answer on May 20, 2026 at 7:22 am

    I started writing up a long post about this based on a site I created… but the issue is that I was just (poorly) reproducing this: http://docs.djangoproject.com/en/1.2/intro/tutorial01/

    My advice to you is to go through this tutorial. I personally found it extremely helpful when I was picking up Django. In part four there’s a great example of submitting user data from a template, dealing with it in a view, and saving it using a model.

    Edit: based on your comment below I see you’re using modelform. I’ve used this once before, but found it a bit limited when it came to styling. When I did, I followed this walkthrough: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/

    Note that you still have to include the form data in your template, as well as generate the form in your view, although the modelform does take some of the work out of it for you. Here’s another walkthrough you may find useful: http://themorgue.org/blog/2008/05/14/django-and-modelform/

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

Sidebar

Related Questions

I have been struggling with a problem that only happens when the database has
I have been struggling with an issue involving a Processing sketch which I want
I have been struggling with the best way to make sure that the certain
I have for the last several years been struggling to understand why the Internet
I have been experimenting with woopra.com A web analytics tool. Which requires a piece
I have been struggling with this for some time now scanning the net for
I have been struggling with trying to send an email with an attachment using
I have been struggling to get Maven2 to cooperate with me, and was wondering
I have been struggling with this for three days, I want to do a
I have been struggling to get my jquery call to a webmethod to work.

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.