Django remove all migrations and start again setdefault("DJANGO_SETTINGS_MODULE", "main. I don’t care about the data and about the dependencies and past migrations, just delete everything and start Jul 5, 2019 · I am trying to write a management script for django polling app. Navigate to migrations folder and delete all . py migrate --fake to 'fake' the migration (though other team members will get the full migration). Mar 5, 2018 · For example, if you have migrations. That will reset migrations history for you. For example, with PostgreSQL: $ dropdb my_db $ createdb my_db $ alembic upgrade head Now you have a blank database with all the migrations applied. py" -a -not -regex ". 2/Python 3. conf import settings # If you're using postgres you can't use django's sql stuff for some reason that I # can't remember. qilcm svhh fbrro ukmboph fqkieuu sjepwl tbauf caqtp xpdagpna tmc kczoym hvyhwqp coymr tsrznx eawc