0

I'm trying to implement Google Login on my Django production website. It works fine on development server, but on my production server, I face this issue after having run python manage.py migrate. I'm not sure what to do, I already tried deleting all the migrations and re-running makemigrations and migrate.

1
  • not much to go on... Do you have different types of databases between dev and prod? Does your prod db allow periods in the name? Do you see any error messages when running the migrations? Commented Jul 6, 2022 at 15:06

1 Answer 1

1

Checklist

  • run showmigrations to see which migrations are done.
  • if the relevant migration containing the table appears to be migrated, rollback and run migrate again.
  • when you want to regenerate migration files, you need to first rollback while you have the old migration files.
  • if you'd like to check which tables exist, use dbshell or other shell depending on the database you're using.

Other things

I would not recommend regenerating migration files just because there is some db issue.

Sign up to request clarification or add additional context in comments.

1 Comment

please let me know if you got more questions!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.