What do they mean, exactly

2022-05-26 Thread Dennoh njogu
I was reading the django docs and i have been confused by the explanation as shown in the snippet. [image: Screenshot from 2022-04-29 01-36-59.png] in the first snippet of code does it mean that both conditions will have to be met as in the case of "and" in logical operators? Second snippet, do

Connecting django to postgresql database

2017-05-25 Thread Njogu
I have been trying to connect my django project to postrgesql database, i have one the configurations to it perfectly like this; ALLOWED_HOSTS = ['localhost', '127.0.0.1'] DATABASES = { 'default': { 'ENGINE' : 'django.db.backends.postgresql_psycopg2', 'NAME' : 'firstdjangop