Hello,
DATABASES_DEFAULT = {
'ENGINE': 'django.db.backends.postgresql_psycopg2','NAME': 'litdb','USER': 'root','PASSWORD': '','HOST': 'localhost','PORT': '80',}
First, if this means what I think it means, it's a very nasty way to define your database. Instead, do this:
DATABASES = { 'default': { 'ENGINE': ..., ..., } }
Now, for what you are asking, PostgreSQL does not listen on port 80; more likely it's listening on port 5432.
Regards,
A.
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b07acc86-a2a9-4fe7-9004-0f7a90fe4100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's because you don't have PostgreSQL installed. The LitDB instructions say, among other things, "Make sure that you have a PostgreSQL database running and that you have permissions to create tables in that database".
The LitDB installation instructions are quite brief, which is
probably fine for someone who knows Django already, but you're in
for a rough ride. What operating system are you running? In
Debian/Ubuntu you can install postgresql with "apt install
postgresql". Are you executing manage.py as root?
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c367c3b4-502b-49ec-94e3-10a0433ccb99%40googlegroups.com.