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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:54:37+00:00 2026-06-05T20:54:37+00:00

My web stack is django/python + postgresql + linux + apache. I use fabric

  • 0

My web stack is django/python + postgresql + linux + apache. I use fabric to automate the deployment from local to the server. For the deployment automation, I wish I could include data migration from my local database to the corresponding database on the server. Is there a way to do that? I prefer to see the data migration becoming a fabric task, if possible.

  • 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-05T20:54:38+00:00Added an answer on June 5, 2026 at 8:54 pm

    I think you need to somehow export the data to a file / files, copy to the target server, and import them. The utilities to do this in Django (documentation) are dumpdata and loaddata.

    So on the local database:

    django-admin.py dumpdata > mydata.json
    

    Then to the server:

    fabric.api.put('mydata.json','/server/data/dir/')
    fabric.api.run('django-admin.py loaddata mydata.json')
    

    You should also have a look at South, which is a database migration tool for Django.

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

Sidebar

Related Questions

My stack for web developing includes Django/Python and Qt/C++ for non-web developing. What is
I've been trying to use Django-appengine to write a small web app, but I
I am writing a web application with django on the server side. It takes
So I have a django server running on my local machine that I want
I'm new to SOA (and to Stack Overflow too...) Some services and web applications
Web-Applications these days make extensive use of Javascript, for example various Google Products like
I've built a Django web application and some Django-Piston services. Using a web interface
We're developing a data heavy modular web application stack with java but have little
If I want to Webhooks-enable a web application (I'm referring to the server-side of
Overflowed Stack, I have a Java web application (tomcat) whereby I allow the user

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.