Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Remote MongoDB #224

Open
armsmani opened this issue May 10, 2016 · 1 comment
Open

Access Remote MongoDB #224

armsmani opened this issue May 10, 2016 · 1 comment

Comments

@armsmani
Copy link

how to configure host, username and password in django settings. Because i wanna access remote mongodb.

I have access remote mongodb in local machine through shell but i can't able to connect through django settings.

'default' : {
'ENGINE' : 'django_mongodb_engine',
'NAME' : 'database_name',
'HOST': 'remote_server_ip',
'USER': 'root',
'PASSWORD': 'root',
'PORT': 27017,
}

@markunsworth
Copy link
Contributor

Firstly github issues aren't meant for support requests, they're here for reporting bugs with the software.

Your code sample doesn't have any obvious issues, my only thought would be that you're setting the values incorrectly. From the code above I'm assuming you've replaced the real values* with strings, if not then that could be your issue.

Are you getting any error messages?

* Please tell me you're not actually using root/root as the username password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants