Django :: PostgreSQL Database

2019년 12월 5일
1분 분량
The default database is SQLite. But if you want to change the database, you could apply the below step, especially for PostgreSQL.
To use PostgreSQL, you need to install it in advance.
1. Settings.py


2. Command Line
$ python manage.py migrate2.1 Error case 1)
If 'python manage.py migrate' doesn't work, you have to install the required pip package. In my case, I installed psycopg2.
$ pip install psycopg22.2 Error case 2)

If it still doesn't work, check whether you wrote the appropriate upper case and lower case. I could solve the error through this method.




댓글