Skip to content

Instantly share code, notes, and snippets.


Ashwin Gopi Krishna ashwingkrish

Block or report user

Report or block ashwingkrish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ashwingkrish /
Created Apr 5, 2019
Downloading MongoDB data onto your local machine

Downloading mongodb data

Execute the following commands to download the database onto your machine.

First, on the server execute this command: mongodump -d <db-name> -o <db-name>

Download the folder called and the on your machine, execute the following command

mongorestore -d <db-name> <db-name>/<db-name>/

ashwingkrish /
Created Apr 3, 2019
Django - Shifting from SQLite3 to PostGres

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 dumpdata > datadump.json

Change to Postgres backend.

Make sure you can connect on PostgreSQL. Then:

You can’t perform that action at this time.