Skip to content

Instantly share code, notes, and snippets.

🤖
Automating

Ashwin Gopi Krishna ashwingkrish

🤖
Automating
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
ashwingkrish / mongo-download.md
Created Apr 5, 2019
Downloading MongoDB data onto your local machine
View mongo-download.md

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
ashwingkrish / migrate-django.md
Created Apr 3, 2019
Django - Shifting from SQLite3 to PostGres
View migrate-django.md

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then:

You can’t perform that action at this time.