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

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

9 Comments

But there are fabric files in /python2.7/site-packages/fabric/.
@Toon, Is there fab program? Is there is, try to specify the full path of the fab.
There are only *.py and *.pyc files
@Toon, If you properly installed fabric, there should be a fab command. Check the output of pip freeze | grep -i fabric
@Toon, pip show -f fabric | grep fab$ will show you path of the fab program. If it's installed.
|
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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.