How do I connect postgresql with django | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How do I connect postgresql with django

20th Aug 2018, 5:31 PM
Vignesh A
Vignesh A - avatar
2 Answers
+ 2
in settings file there is a place to specify database connection information
22nd Aug 2018, 5:49 AM
JME
0
You first need to install the psycopg2 package. After installation you need to change your settings file from the default(sqlite3) to postgresql. Hope this helps!
2nd Jan 2019, 4:02 PM
Leroy Sharp
Leroy Sharp - avatar