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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:08:26+00:00 2026-06-15T02:08:26+00:00

Django 1.4 Sorry if this is a silly question i am fairly new to

  • 0

Django 1.4

Sorry if this is a silly question i am fairly new to Django.
I am attempting to link a user and a profile together via the inbuilt auth profile system. All the examples of this i can find do not use a class based view, which is something i would really like to use.

Basically i would like a form that combines the Profile and the User allowing me to create both at the same time. If possible i would like to use the same form to Edit/Create the User + Profile.

I have created a model for the profile: Profile

Created forms:

class UserForm(forms.ModelForm):
    class Meta:
        model = User


class ProfileRegisterView(FormView):
    template_name = 'profile-register-form.html'
    form_class    = UserForm
    success_url   = '/account/created/'

Adding the profile to the user model does not seem to include it within the UserForm:

AUTH_PROFILE_MODULE = "creative_profile.Profile"

The 2nd alternative i have tried was to define individual forms in forms.py however the form_class attribute only accepts one form model..

Any pointers help would be great, thanks

  • 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-15T02:08:27+00:00Added an answer on June 15, 2026 at 2:08 am

    One possible solution is to include the Profile fields in your UserForm and override the save() method to populate the Profile fields.

    The save() method will have to include a get_or_create() call for the Profile model if you’re not using a post_save signal to create it. If you are using a post_save signal to create the Profile model, you’re going to have to make sure the User is being saved first before calling the get_profile() method.

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

Sidebar

Related Questions

I'm new to Django so i'm sorry if this question is noobish. I want
I'm new to Django, sorry if this is a basic question. I need to
Sorry, I am still new to Django, hopefully the question isn't out of place.
I am sorry if this question is already posted somewhere. I am very new
i'm new to django so i'm sorry for my newbie question i have a
Sorry for the noobish question (I'm new with Django) but I was wondering how
This question is probably a duplicated question and sorry about that. I'm using Django
New to Django so sorry if this is trivial I have a base.html template
Sorry this is basic, but I'm new to Python and Django. I have a
I am new to web application development, so sorry in advance if this question

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.