-
Hello, I've copied the entire user app on piccolo-orm and had its route set up in my piccolo.conf.py like so: APP_REGISTRY = AppRegistry(
apps=[
"app.piccolo.apps.user.piccolo_app",
"app.piccolo.apps.emotion_log.piccolo_app",
"app.piccolo.apps.trivia.piccolo_app",
"piccolo_admin.piccolo_app"
]
) The documentation and some discussions here point to this being a viable alternative, especially since what I want to modify are the datatype for id (from Serial to UUID) and password length restrictions (from 6-128 to 8-64). I'm running my system in docker, with litestar as backend framework and the postgres database in another container.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Numbers00 Unfortunately it's not documented, but your custom user app must go after the APP_REGISTRY = AppRegistry(
apps=[
"app.piccolo.apps.emotion_log.piccolo_app",
"app.piccolo.apps.trivia.piccolo_app",
"piccolo_admin.piccolo_app", # you can also safely delete piccolo_admin.app
"app.piccolo.apps.user.piccolo_app", # <- HERE
]
) because if |
Beta Was this translation helpful? Give feedback.
@Numbers00 Unfortunately it's not documented, but your custom user app must go after the
piccolo_admin.piccolo_app
like thisbecause if
piccolo_admin.piccolo_app
is before the custom user app, migrations don't happen because Piccolo Admin uses the defaultBaseUser
from Piccolo ORMhttps://github.com/piccolo-orm/piccolo_admin/blob/7f3383bfd403f07e2af4c3c2fd2437380c41360c/piccolo_admin/endpoints.py#L17
After th…