Error of MONGODB_URL | MONGODB local setup #176
-
I've seen a lots problem/ queries related to mongodb setup. So, I've decided to guide you all through this Q&A discussion channel. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To resolve this error, You have to setup your own local mongodb connection.
MONGODB_URI="mongodb://localhost:27017/?readPreference=primary&ssl=false&directConnection=true"
ADMIN_KEY=""
SUPER_ADMIN_KEY=""
UMAMI_WEBSITE_ID=""
[api_key]
GEMINI_API_KEY=""
NEWS_API_KEY=""
TMDB_API_KEY=""
NASA_API_KEY=""
WEATHER_API_KEY=""
YOUTUBE_API_KEY=""
OpenAI_API_KEY=""
UBERDUCK_API_KEY=""
[google_drive]
SIMILARITY=""
MOVIES_LIST="" |
Beta Was this translation helpful? Give feedback.
To resolve this error, You have to setup your own local mongodb connection.
First you have to download MongoDB Compass from the official website.
Setup in your system by watching any youtube tutorial.
Create a simple & new connection using MONGODB COMPASS.
As you can watch, I've created a local MONGODB_URI =
mongodb://localhost:27017/?readPreference=primary&ssl=false&directConnection=true
Now, click the connect button simply and start the database server locally.
Come to the codebase and create a file named
secrets.toml
under.streamlit
folder as provided 1 more file with the name ofsecrets.example.toml
.Now, copy and paste all the credentials of later file into
secrets.toml