MigrationManager can't find migrations when running outside of module directory #471
Unanswered
theelderbeever
asked this question in
Q&A
Replies: 1 comment 4 replies
-
How about moving your Then the contents of the APP_REGISTRY = AppRegistry(
apps=[
"application.db.app", # assuming app.py if your piccolo app file
]
) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tend to structure my projects in the following manner and run the application from
.
as shown in the tree below. This allows for relative imports inside the application and seemingly helps with name collisions. When attempting to runpiccolo migrations forwards <app_name>
from the top level a few errors crop up...piccolo
command won't find the conf.${PWD}
and${PWD}/application/db/migrations
toPYTHONPATH
.These definitely aren't ideal solutions. Do you have any recommendations on better ways to accomplish solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions