Not able to connect postgresql with django Not able to connect postgresql with django postgresql postgresql

Not able to connect postgresql with django


Drop database and re create database.

In settings.py write 'PORT'='5432' or '5433' as this is the common port in all postgresql.

Then do syncdb or migrate.


Since your table was created without the tools of Django. You will need to write down an Model class and set some Metal information about the "custom" name format of your table: https://docs.djangoproject.com/en/1.7/ref/models/options/#table-names

If you can, i recommend you to drop this table and use the Django ORM to build up your database. It's more fast and simple than write everything in SQL: https://docs.djangoproject.com/en/1.7/intro/tutorial01/#creating-models