I need to migrate a complex project from sqlite to PostgreSQL. A lot of people seems to have problem with foreign keys, data truncature and so on...
According to the @Nimo answer, used from "syncdb", "syncdb" doesn't work in Django 1.9 and later (that works on Django 1.7)
Instead of that, use the command below:
python manage.py migrate
And Postgres setting configuration is here:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'myproject',
'USER': 'myprojectuser',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}
}