0

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? :)

Toon
  • 652
  • 1
  • 11
  • 24

2 Answers2

2

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.

falsetru
  • 357,413
  • 63
  • 732
  • 636
0

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.

Alex
  • 2,356
  • 15
  • 19