Toon
Toon

Reputation: 652

Django sqlite3 database dump

How can i create Django sqlite3 dump file (*.sql) using terminal?

There is a fabric fabfile.py with certain dump scripts, but when i try to use fab command next massage shows up:

The program 'fab' is currently not installed. To run fab please ask your administrator to install the package 'fabric'.

But there are fabric files in /python2.7/site-packages/fabric/.

I'm not good at Django and Python at all. The guy, who was responsible for our Django project, just left without any explanations.

In general i need to know how to create Django sqlite3 dump file (*.sql) via terminal. Help? :)

Upvotes: 0

Views: 1410

Answers (2)

Alex
Alex

Reputation: 2474

You could also use fixtures. And generate fixtures for your app. Dependes on what you're planing to do with them.

You'll just make a loaddata after that.

Upvotes: 0

falsetru
falsetru

Reputation: 368894

fab is command included in fabric package. Having a fabfile.py does not mean you installed fabric. The fabfile.py is used by fab.

Install fabric:

pip install fabric

then, you can use fab command.

Upvotes: 2

Related Questions