Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How Django-oscar installs postgresql database

Shulou Source: shulou.com Published: 2022-06-01 19:41:58 10月27日 Update

This article mainly shows you "Django-oscar how to install postgresql database", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Django-oscar how to install postgresql database" this article.

Install dependent libraries

Pip install psycopg2

Or

Pip install psycopg2-binary

Configuration in settings.py (local)

'default': {' ENGINE': 'django.db.backends.postgresql','NAME':' dbname','USER': 'username','PASSWORD':' dbpass','HOST': 'localhost', # or' HOST': '127.0.1

Or:

'default': {' ENGINE': 'django.db.backends.postgresql_psycopg2','NAME':' dbname','USER': 'username','PASSWORD':' dbpass','HOST': 'localhost', # or' HOST': '127.0.0.1 copyright copyright:',} these are all the contents of the article "how to install the postgresql database in Django-oscar". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Data database content articles learning help easy to understand more organization knowledge editing industry information information channels channels research configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Microsoft Shulou Information Redmi