Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
932 views
in Technique[技术] by (71.8m points)

heroku - Why am i getting a migration error: dependencies reference nonexistent?

I can't seem to run my migrations file during deployment. I'm using the django-allauth package to set up a custom user model. Running python3 manage.py makemigrations i get a 0001_initial.py which Heroku throws:

Migration accounts.0001_initial dependencies reference nonexistent parent node ('auth', '0013_auto_20201218_2106')

It doesn't seem to like the following autogenerated code in 0001_initial.py:

dependencies = [
    ('auth', '0013_auto_20201218_2106'),
]

I'm developing locally using SQLite which i believe heroku maps to postgres.

I've also looked at this question and the official docs but it doesn't seem to help.

my procfile contains:

release: python manage.py migrate

settings include:

django_heroku.settings(locals())

Any ideas as to why this is happening?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...