django - OperationFailure: database error: not authorized for query on database.system.namespaces -


i beginner lift django mongodb on heroku [ addon : mongolab ].

heroku run python manage.py syncdb 

running python manage.py syncdb attached terminal... up, run.2332 creating tables ...

operationfailure: database error: not authorized query on database.system.namespaces consider editing privileges on basis of data mongo 

.

>use admin >db.adduser({ user: "myadmin", pwd: "1234", roles: ["useradminanydatabase"] }) 

but get:

error: couldn't add user: not authorized on admin execute command  

thanks in advance.

heroku postgres not allow user creation. you'll want use connection string provided in database_url. actions creating/dropping db's , creating users prohibited.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -