You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running sqlmigrate management command on oauth app causes ValueError. This is true for most of the oauth migration files that reference projects.Project
Details
Running
sqlmigrate
management command onoauth
app causesValueError
. This is true for most of the oauth migration files that referenceprojects.Project
There is an old Django ticket for reference: https://code.djangoproject.com/ticket/28056
Example Command
python manage.py sqlmigrate oauth 0012
Output
ValueError: The field oauth.RemoteRepository.project was declared with a lazy reference to 'projects.project', but app 'projects' isn't installed.
Possible Solution
Here the possible solution is to add a project migration as a dependancy to all the migrations that are failing. for example:
This issue might be happening in other places of the codebase as well.
The text was updated successfully, but these errors were encountered: