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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:24:04+00:00 2026-06-12T04:24:04+00:00

Possible Duplicate: Creating a extended user profile here is my User model part :

  • 0

Possible Duplicate:
Creating a extended user profile

here is my User model part :

 27 class Profile(models.Model):
 28     owner = models.OneToOneField(User)
 29     title = models.CharField(max_length=20,blank=True)
 30     slogan = models.TextField(blank=True)
 31     twitter = models.URLField(blank=True)
 32     web_site = models.URLField(blank=True)
 33     email = models.EmailField(blank=True)
 34 
 35     def create_user(sender,instance,created,**kwargs):
 36         if created:
 37             Profile.objects.create(owner=instance)
 38     post_save.connect(create_user, sender=User)
 39     
 40     def __unicode__(self):
 41         return self.owner.username

in this situation ; when i create a user ; then i have to create a profile for the user which is just created.

i want to make this automatically. The User ; must create its own profile page when it s been created.

thank you.

edit : all fields have blank = True ; so it is enough just to create a blank profile object belongs to user.

  • 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-12T04:24:05+00:00Added an answer on June 12, 2026 at 4:24 am

    This is covered explicitly in the documentation. You use signals. They even give a complete example:

    # in models.py
    
    from django.contrib.auth.models import User
    from django.db.models.signals import post_save
    
    # definition of UserProfile from above
    # ...
    
    def create_user_profile(sender, instance, created, **kwargs):
        if created:
            UserProfile.objects.create(user=instance)
    
    post_save.connect(create_user_profile, sender=User)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Creating an abstract class in Objective C In Java I like to
Possible Duplicate: Android Emulator - Trouble creating user accounts I'm trying to register a
Possible Duplicate: Instance as a static class property I got a problem about creating
Possible Duplicate: Creating an instance using the class name and calling constructor How can
Possible Duplicate: Creating a CSS class in jQuery $(< style>span{color:red}< /style>); jQuery < span>jQuery<
Possible Duplicate: Creating a new Location object in javascript If the user inputs a
Possible Duplicate: Efficient Method for Creating CSV String from Lists/SortedLists C#? Here i need
Possible Duplicate: What’s the return type of an anonymous class I'm creating an anonymous
Possible Duplicate: Creating online help in Java Swing application - using pdf user docs
Possible Duplicate: Compiler is creating extra class files with $ in them I am

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.