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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:33:59+00:00 2026-06-04T14:33:59+00:00

The situation: I have a database with thousands of users. I have created a

  • 0

The situation:

I have a database with thousands of users.

I have created a new application called ‘my_app‘.

my_app has one object called ‘my_Object‘.

my_object has an a relation one_to_one with the Django User.

class my_object(models.Model):
    user = models.OneToOneField(User)   

My question is:

How can I create a register for all users already on the database? I know I can use post_save for the new ones, but how can I relate / connect this new object backwards?

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-04T14:34:01+00:00Added an answer on June 4, 2026 at 2:34 pm

    Run a SQL query in your favorite database manager that creates records for all the existing User records.

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

Sidebar

Related Questions

I have two database tables, one for Users of a web site, containing the
Situation I have 5 Access DB files, each one has 10 tables, 40 queries
Here is the situation we have: a) I have an Access database / application
I got the following situation: I have an application configuration in my database which
Situation: I have a database that contains sales records, each record has a ID
Consider the below situation I have a database table as below user_id user_rank ------------------
I have situation in which I read a record from a database. And if
I have a situation where our developers extended a Third party database (MS SQL)
We have a situation where we need to display data from a database in
I used to have a situation where I hit the database a every time

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.