django.db.utils.ProgrammingError: relation “django_content_type” does not exist

Problem

when making migrate this error appear.

django.db.utils.ProgrammingError: relation "django_content_type" does not exist

Reason

this problem usually occurs at first migrate because there is usage of content_types inside code before creating tables.

Solution

put your project urls inside try and except.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
USD United States (US) dollar