How to set up a PostgreSQL database in Django

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

    You can install "psycopg" with the following command:

    # sudo easy_install psycopg2
    

    Alternatively, you can use pip :

    # pip install psycopg2
    

    easy_install and pip are included with ActivePython, or manually installed from the respective project sites.

    Or, simply get the pre-built Windows installer.

提交回复
热议问题