I know I can create a data source step by step using a manage.py ds new demoname commad ,but is it possible to create a
datasource in one single. command with password and so on
This site is in read only mode. Please continue to browse, but replying, likes,
and other actions are disabled for now.
Not with manage.py
but this would be pretty straightforward to write for yourself in Python.
bin/run ./manage.py ds new --type=mongodb --options="{“host”:“server-cluster-1xyz8.mongodb.net”, “port”:27017, “user”:“dev2rwuser”,“password”:“xxxxxx”,“dbname”:“mongo_dbname”}" Test-Mongo
What is wrong with this Mongo setup command? Please help…!!
I get “Error: invalid configuration.”
Have you tried using the exact, case-sensitive field names?
"connectionString":
"username":
"password":
"dbName":
"replicaSetName":
"readPreference":
Thank you!! This worked
1 Like