Manage.py disagrees with web interface


#1

I’ve just started a Redash image from the AWS marketplace (not Bitnami, I followed the link on the Redash setup pages) - and this is working fine and I can set up data sources and queries.

However, I have requirement to set up Datasources programatically so I would assume I would do with this manage.py. When I SSH into the box, however, manage.py seems to be querying a different database somehow?

sudo -u redash ./manage.py users list

This gives an error saying the users table doesn’t exist, but I can clearly see users in the web front end? I’ve likely missed a config parameter but I can’t for the life of me find it.


#2

You need to prefix the command with bin/run which loads the .env file, i.e.:

sudo -u redash bin/run ./manage.py users list

#3

Ah yes, I knew it would be something I’d missed.

Thanks!