Tuesday, February 8, 2022

Re: migrations: "no changes detected"

I think this has to be like you are trying to add some model whose field is not recognizable I have the same issue when using geodjango.
If you delete the DB.sqlite3 sometimes it won't work or even deleting the migrations won't also work.
If that happens just run,
1. python manage.py makeigrations
2. python manage.py sqlmigrate app_name, 0001_initial

this will generate the schemas of the app models just copy the model you want schemas and open your SQLite DB browser if you don't have you can download one if you are using Postgres or any DB just open it and paste the schema there to create that new schema in your DB for you then you are done.

On Tue, 8 Feb 2022 at 10:14, Feroz Ahmed <feroz.resh@gmail.com> wrote:

checkout u not forgot to add app in installed app in settings.py

if still the issue , forward your settings.py

 

best practice , try to solve the issue from current configuration

 

Regards

 

From: 'Delvin Alexander' via Django users [mailto:django-users@googlegroups.com]
Sent: 08 February 2022 10:12
To: Django users
Subject: migrations: "no changes detected"

 

I am trying to run migrations so that i can create a table, but when I type out, "python manage.py makemigrations"

it returns this: "no changes detected"

 

would anyone know the reason for this?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/639770ea-db24-469a-a123-6f4cb2af3036n%40googlegroups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/62028856.1c69fb81.7aa2d.a900%40mx.google.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPVAachsTeOZvsC6%2BtqjYNt2mbBjCiW%3D%2B%3DJ4mgL6TbrKDBqYdg%40mail.gmail.com.

No comments:

Post a Comment