Monday, September 11, 2017

Error message when setting PostgreSQL Database

Hi Django Community,

I am kind of new to Django web development and I am encountering an error when I am migrating my DB from SQLlite3 to PostgreSQL.
I have installed pgAdmin4, psycopg2 as well as set my DATABASES correctly in settings.py

However, when I run "python migrate.py migrate" command, I receive the following error:
django.db.utils.ProgrammingError: operator class "varchar_pattern_ops" does not accept data type integer

The full error:



I have searched on google for hours and couldn't find anyone how to fix it.

I'd really appreciate if someone could help!

Kind regards
Arthur

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/7e17bbcb-9c5c-4379-ae0d-b55f97dc4a2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment