How Django-oscar installs postgresql database
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!