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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:07:50+00:00 2026-05-31T13:07:50+00:00

My django application has some 500 records in various tables in the database( postgres

  • 0

My django application has some 500 records in various tables in the database(postgres).I want to add some 4 more records to a particular table.I have created(edited by hand )a json file that represents the new data to be added and I have taken care to provide them new ids so that they don’t conflict with existing records in db.

What I want to know is whether the existing data(the original 500 records) will be deleted when I call

django-admin.py loaddata mydata.json

Or will the new data be added to the existing records?

p.s:
Is there any way I can convert the whole data in db into a json file?Using serializers is time consuming when there are many model classes.

  • 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-31T13:07:51+00:00Added an answer on May 31, 2026 at 1:07 pm

    You should do a backup before the loaddata if it’s mission critical.

    That said, loaddata just adds or updates records, it doesn’t delete the existing ones.

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

Sidebar

Related Questions

If a gis application has some tables which don't have gis related columns, does
My django application has become painfully slow on the production. Probably it is due
I have a reviews/ratings web application, a la Digg. My django app content has
I am creating small django application which holds some few questions (and answers for
HI I have a django application running on app engine and I want to
I built a Django application for a client about a year ago. He has
Some additional features were added to a django application, and as a result the
I've been trying to get some Ajax stuff to work in my Django application,
I am working on a Django application where I need all the postgres represented
I am building an application using django, and using django-south for the database schema

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.