help with this migrations error the site is running i cant drop the database

233 views
Skip to first unread message

Fastmobile Fastmobile

unread,
Jun 4, 2019, 8:38:06 AM6/4/19
to Django developers (Contributions to Django itself)
python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv self.execute(*args, **cmd_options) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute output = self.handle(*args, **options) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped res = handle_func(*args, **kwargs) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/commands/makemigrations.py", line 103, in handle loader.check_consistent_history(connection) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/db/migrations/loader.py", line 297, in check_consistent_history connection.alias,django.db.migrations.exceptions.InconsistentMigrationHistory: Migration django_comments.0001_initial is applied before its dependency ogbam.0001_initial on database 'default'.

Adam Johnson

unread,
Jun 4, 2019, 9:03:58 AM6/4/19
to django-d...@googlegroups.com
Hi!

I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer your support query with their limited time and energy. Read more on the mailing lists at https://www.djangoproject.com/community/

For support, please use the django-users mailing list, or IRC #django on Freenode, or a site like Stack Overflow. There are people out there willing to help on those channels, but they might not respond if you don't ask your question well. Stack Overflow's question guide can help you frame it well: https://stackoverflow.com/help/how-to-ask . Posting only a stack trace is *not* very easy to respond to.

Also if you haven't read it, please take a look at Django's Code of Conduct: https://www.djangoproject.com/conduct/ . These are our "ground rules" for working well as a community, and will help you get the most out of Django and our fantastic community.

Thanks for your understanding,

Adam

On Tue, 4 Jun 2019 at 07:52, Fastmobile Fastmobile <fastmo...@gmail.com> wrote:
python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv self.execute(*args, **cmd_options) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute output = self.handle(*args, **options) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/base.py", line 83, in wrapped res = handle_func(*args, **kwargs) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/core/management/commands/makemigrations.py", line 103, in handle loader.check_consistent_history(connection) File "/home/Ogdams/.virtualenvs/my-virtualenv/lib/python3.7/site-packages/django/db/migrations/loader.py", line 297, in check_consistent_history connection.alias,django.db.migrations.exceptions.InconsistentMigrationHistory: Migration django_comments.0001_initial is applied before its dependency ogbam.0001_initial on database 'default'.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/be454c98-e20e-4e08-9beb-1cf901ac1056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Adam
Reply all
Reply to author
Forward
0 new messages