Replies: 1 comment 3 replies
-
It would be quite easy to add: from piccolo.apps.user.tables import BaseUser
async def list_users():
usernames = await BaseUser.select(BaseUser.username).output(as_list=True)
print('\n'.join(usernames)) If you wanted you could add it as a custom command to your own app. It might be worth adding to Piccolo itself as a An alternative is to modify the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be useful to list existing users (for example, to avoid creating the admin user again if it exists; useful eg when running init containers in kbernetes).
Beta Was this translation helpful? Give feedback.
All reactions