I am on the django tutorial trying to have PostgressSQL be the database provided for my Django Project. After researching on Youtube, Looking in StackOverflow, and Asking Chat CPT I have come up empty. Per chat GPT I am supposed to install postgress. which I have run the installer and done fully. When I run pip install psycopg2 it says the requirement is already satisfied. In my Django Project I have opened settings.py in the projects main directory and located the databases section. I replaced the code with the code for postgress.
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.postgresql’,
‘NAME’: ‘your_database_name’,
‘USER’: ‘your_username’,
‘PASSWORD’: ‘your_password’,
‘HOST’: ‘localhost’,
‘PORT’: ‘5432’, # default PostgreSQL port
}
}
I have replaced ‘your_database_name’, ‘your_username’, and ‘your_password’ with my actual database name, username, and password, respectively.
When I try to do step 4 which is create the database I try running the command
createdb your_database_name
I make sure to replace ‘your_database-name’ with the actual name I specified in the ‘settings.py’ file.
I get the following error message. zsh: command not found: createdb.
any advice?