[Answered ]-I can't populate table from postgres to django model

2👍

Django provides a table auth_users for storing user data in the database. If you want to make your own User model, you can do so either by extending the class User in django.contrib , or make a separate model for User Profile having a foreign key as User .

Secondly , if you want to create table with data before syncdb, you have to make the table as the same name as the _users , so that after the syncdb , django won’t create a new table in the database , instead use your table.
Hope it solves your doubt.

Leave a comment