raunak-r / grow-holistic

A guide for software developers to learn and prepare for their everyday tasks.
2 stars 3 forks source link

Shivalika's notes #12

Closed ShivalikaRastogi closed 12 months ago

ShivalikaRastogi commented 1 year ago
  1. Replace sqlite with postgres. https://studygyaan.com/django/how-to-connect-postgresql-database-in-django-project
ShivalikaRastogi commented 1 year ago

dump data in pg admin 1)pg_dump --help 2)pg_dump -Fc -h 127.0.0.1 -U postgres company_management -f employee_data.dump -Fc: custom format -h: specify host connection that is (127.0.0.1) -U : Specify user name of your database( mine is postgres) company_management: targeted database name -f : specify file name (-f employee_data.dump)

or https://www.youtube.com/watch?v=weW-dxdBsqI