How to set up a PostgreSQL database in Django

后端 未结 11 1160
滥情空心
滥情空心 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:29

    If you are using Fedora 20, Django 1.6.5, postgresql 9.3.* and you need the psycopg2 module, do this:

    yum install postgresql-devel
    easy_install psycopg2
    

    If you are like me, you may have trouble finding the well documented libpq-dev rpm... The above worked for me just now.

提交回复
热议问题