How to set up a PostgreSQL database in Django

后端 未结 11 1196
滥情空心
滥情空心 2020-11-29 15:28

I\'m new to Python and Django.

I\'m configuring a Django project using a PostgreSQL database engine backend, But I\'m getting errors on each database operation. For

11条回答
  •  悲&欢浪女
    2020-11-29 15:55

    Also make sure you have the PostgreSQL development package installed. On Ubuntu you need to do something like this:

    $ sudo apt-get install libpq-dev
    

提交回复
热议问题