here is the exact error
django.db.migrations.loader.BadMigrationError: Migration 0001_initial in app django_comments has no Migration class
I have no idea what this means and I don't know where to go. I did some work with my venv, making a new one and then I was trying to get everything back to normal. Installing this and that...I lost track of everything I was doing because my laptop died which really pissed me off.
Any idea where to go from here?
EDIT:
If I try to upgrade django_comments I get the following error:
Could not find a version that satisfies the requirement django-comments (from versions: 0.2a, 0.3.1a, 0.3.2a, 0.3.3a, 0.3a, 1.0.0.b, 1.0.0.b, 1.0.0.b)
Cleaning up... No distributions matching the version for django-comments Storing debug log for failure in /home/jeff/.pip/pip.log
As the problem is related to the migration, you have to understand first how it works, django check you database schema compares it with your model then generates the migration script. Every migration script is executed one time, because django keep tracking you migrations. This is managed by a table called django_migrations
that is created in your database the first time migrations are ran. So I will suggest two things:
django_migrations
table and delete the row containing django_comments migrations and most probably the correspondent table, so you can apply the migration again