René's URL Explorer Experiment


Title: mongoengine.connection.ConnectionError: Cannot connect to database default · Issue #2 · allisson/flask-example · GitHub

Open Graph Title: mongoengine.connection.ConnectionError: Cannot connect to database default · Issue #2 · allisson/flask-example

X Title: mongoengine.connection.ConnectionError: Cannot connect to database default · Issue #2 · allisson/flask-example

Description: I got this error when running run.py (flask-example) C:\Users\David\python-ninja\flask-example>python run.py Traceback (most recent call last): File "run.py", line 4, in app = create_app('settings') File "C:\Users\David\python-n...

Open Graph Description: I got this error when running run.py (flask-example) C:\Users\David\python-ninja\flask-example>python run.py Traceback (most recent call last): File "run.py", line 4, in app = create_app('...

X Description: I got this error when running run.py (flask-example) C:\Users\David\python-ninja\flask-example>python run.py Traceback (most recent call last): File "run.py", line 4, in <module>...

Opengraph URL: https://github.com/allisson/flask-example/issues/2

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mongoengine.connection.ConnectionError: Cannot connect to database default","articleBody":"I got this error when running run.py\n\n```\n(flask-example) C:\\Users\\David\\python-ninja\\flask-example\u003epython run.py\nTraceback (most recent call last):\n  File \"run.py\", line 4, in \u003cmodule\u003e\n    app = create_app('settings')\n  File \"C:\\Users\\David\\python-ninja\\flask-example\\application.py\", line 20, in create_app\n    db.init_app(app)\n  File \"c:\\Users\\David\\python-ninja\\flask-example\\lib\\site-packages\\flask_mongoengine\\__init__.py\", line 66, in init_app\n    self.connection = mongoengine.connect(**conn_settings)\n  File \"c:\\Users\\David\\python-ninja\\flask-example\\lib\\site-packages\\mongoengine\\connection.py\", line 164, in connect\n    return get_connection(alias)\n  File \"c:\\Users\\David\\python-ninja\\flask-example\\lib\\site-packages\\mongoengine\\connection.py\", line 126, in get_connection\n    raise ConnectionError(\"Cannot connect to database %s :\\n%s\" % (alias, e))\nmongoengine.connection.ConnectionError: Cannot connect to database default :\nFalse is not a read preference.\n```\n\nI fixed it by adding to settings.py\n\n```\nfrom pymongo import read_preferences\n```\n\nand\n\n```\n'read_preference': read_preferences.ReadPreference.PRIMARY\n```\n\nto MONGODB_SETTINGS.\n","author":{"url":"https://github.com/dvdme","@type":"Person","name":"dvdme"},"datePublished":"2015-04-12T02:11:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2/flask-example/issues/2"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:43622937-5988-78ba-1c6d-28cdbfdae643
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD2C:18FEFE:4BECF9:66C676:6A613BDF
html-safe-noncec8d14783e51a21a4ad0d162f36ba672237386d9ec5a543ad10ad16cc906a82a9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDJDOjE4RkVGRTo0QkVDRjk6NjZDNjc2OjZBNjEzQkRGIiwidmlzaXRvcl9pZCI6IjczNDQ2NDA3Mzc5MTY1NjY0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e7617cb64a5a7a34138d5db869404d198a464c2af1c054379b8f4ca5549d801
hovercard-subject-tagissue:67861934
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allisson/flask-example/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0c2f12e2ed99f6c384ab58dbb92c51cf934ed28ccd164aa6163898ce54452218/allisson/flask-example/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0c2f12e2ed99f6c384ab58dbb92c51cf934ed28ccd164aa6163898ce54452218/allisson/flask-example/issues/2
og:image:altI got this error when running run.py (flask-example) C:\Users\David\python-ninja\flask-example>python run.py Traceback (most recent call last): File "run.py", line 4, in app = create_app('...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedvdme
hostnamegithub.com
expected-hostnamegithub.com
None2b7a3d1e6770dc7153450d820fcfe9a7851c4cf2251dcc29c7ad3c5cd1b9e88b
turbo-cache-controlno-preview
go-importgithub.com/allisson/flask-example git https://github.com/allisson/flask-example.git
octolytics-dimension-user_id5202
octolytics-dimension-user_loginallisson
octolytics-dimension-repository_id11550544
octolytics-dimension-repository_nwoallisson/flask-example
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id11550544
octolytics-dimension-repository_network_root_nwoallisson/flask-example
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release78cf9d43f120d1f03636ca22ab420bcbb1712804
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/allisson/flask-example/issues/2#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallisson%2Fflask-example%2Fissues%2F2
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallisson%2Fflask-example%2Fissues%2F2
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=allisson%2Fflask-example
Reloadhttps://github.com/allisson/flask-example/issues/2
Reloadhttps://github.com/allisson/flask-example/issues/2
Reloadhttps://github.com/allisson/flask-example/issues/2
allisson https://github.com/allisson
flask-examplehttps://github.com/allisson/flask-example
Notifications https://github.com/login?return_to=%2Fallisson%2Fflask-example
Fork 41 https://github.com/login?return_to=%2Fallisson%2Fflask-example
Star 77 https://github.com/login?return_to=%2Fallisson%2Fflask-example
Code https://github.com/allisson/flask-example
Issues 2 https://github.com/allisson/flask-example/issues
Pull requests 0 https://github.com/allisson/flask-example/pulls
Actions https://github.com/allisson/flask-example/actions
Projects https://github.com/allisson/flask-example/projects
Wiki https://github.com/allisson/flask-example/wiki
Security and quality 0 https://github.com/allisson/flask-example/security
Insights https://github.com/allisson/flask-example/pulse
Code https://github.com/allisson/flask-example
Issues https://github.com/allisson/flask-example/issues
Pull requests https://github.com/allisson/flask-example/pulls
Actions https://github.com/allisson/flask-example/actions
Projects https://github.com/allisson/flask-example/projects
Wiki https://github.com/allisson/flask-example/wiki
Security and quality https://github.com/allisson/flask-example/security
Insights https://github.com/allisson/flask-example/pulse
mongoengine.connection.ConnectionError: Cannot connect to database defaulthttps://github.com/allisson/flask-example/issues/2#top
https://github.com/allisson
https://github.com/dvdme
dvdmehttps://github.com/dvdme
on Apr 12, 2015https://github.com/allisson/flask-example/issues/2#issue-67861934
allissonhttps://github.com/allisson
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.