Inter-App Table Dependencies and Migrations #703
Replies: 3 comments 13 replies
-
Try also adding it to APP_REGISTRY = AppRegistry(
apps=[
"my_app.piccolo_app",
"piccolo.apps.user.piccolo_app",
]
) It might be that |
Beta Was this translation helpful? Give feedback.
-
@hr-curtissimo I can't produce your error and everything is fine. Maybe you forgot to run
and than create user with Once you download the folder, delete the migrations from the home and accounts apps, add the db credentials and run your migrations like this
and you should be fine. |
Beta Was this translation helpful? Give feedback.
-
I've opened a PR (#864) which fixes the inter-app migration sorting. Should be in the next release. |
Beta Was this translation helpful? Give feedback.
-
I'm following the advice of #420 - What is the best way to extend BaseUser?. I've created an app named accounts that has a
Profile(Table)
in it and aForeignKey
back to theBaseUser
.When I try to migrate accounts, I get an error because the
piccolo_user
table does not exist, even when I add the following to theAPP_CONFIG
of the accounts app:Do I misunderstand the purpose of
migration_dependencies
?Beta Was this translation helpful? Give feedback.
All reactions