René's URL Explorer Experiment


Title: Fix for error when missing MySQLdb by iotmani · Pull Request #1728 · GoogleCloudPlatform/python-docs-samples · GitHub

Open Graph Title: Fix for error when missing MySQLdb by iotmani · Pull Request #1728 · GoogleCloudPlatform/python-docs-samples

X Title: Fix for error when missing MySQLdb by iotmani · Pull Request #1728 · GoogleCloudPlatform/python-docs-samples

Description: Code samples used on cloud.google.com. Contribute to GoogleCloudPlatform/python-docs-samples development by creating an account on GitHub.

Open Graph Description: While looking into the cause of an exception: ModuleNotFoundError: No module named 'MySQLdb' I noticed the pymysql initialisation was missing, yet it was done for the python2 tutorial sett...

X Description: While looking into the cause of an exception: ModuleNotFoundError: No module named 'MySQLdb' I noticed the pymysql initialisation was missing, yet it was done for the python2 tutor...

Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:22a9d1ed-1299-ef20-4bae-53dce966c80a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB8CC:193F03:11B1EE0:188D299:6A4DE2D7
html-safe-nonce4d1aa66bd01661ecfa20b12cde7b21715af45f1de82771f59845affe7c7b78cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOENDOjE5M0YwMzoxMUIxRUUwOjE4OEQyOTk6NkE0REUyRDciLCJ2aXNpdG9yX2lkIjoiNDIyMDgyMDQ3NzAzMzk2NDI0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6fdd6f740c821e0f14f193d34af6c3294af2b3836c14297da6b3d7b1bc37479d
hovercard-subject-tagpull_request:220148722
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/GoogleCloudPlatform/python-docs-samples/1728/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4af799e998d97358a705b8d90549b2b48f2588f611f3a155fc0e9ac15c56accd/GoogleCloudPlatform/python-docs-samples/pull/1728
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4af799e998d97358a705b8d90549b2b48f2588f611f3a155fc0e9ac15c56accd/GoogleCloudPlatform/python-docs-samples/pull/1728
og:image:altWhile looking into the cause of an exception: ModuleNotFoundError: No module named 'MySQLdb' I noticed the pymysql initialisation was missing, yet it was done for the python2 tutorial sett...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiotmani
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-cache
go-importgithub.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git
octolytics-dimension-user_id2810941
octolytics-dimension-user_loginGoogleCloudPlatform
octolytics-dimension-repository_id35065876
octolytics-dimension-repository_nwoGoogleCloudPlatform/python-docs-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35065876
octolytics-dimension-repository_network_root_nwoGoogleCloudPlatform/python-docs-samples
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
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F1728
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
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F1728
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=GoogleCloudPlatform%2Fpython-docs-samples
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
GoogleCloudPlatform https://github.com/GoogleCloudPlatform
python-docs-sampleshttps://github.com/GoogleCloudPlatform/python-docs-samples
Notifications https://github.com/login?return_to=%2FGoogleCloudPlatform%2Fpython-docs-samples
Fork 6.7k https://github.com/login?return_to=%2FGoogleCloudPlatform%2Fpython-docs-samples
Star 8.1k https://github.com/login?return_to=%2FGoogleCloudPlatform%2Fpython-docs-samples
Code https://github.com/GoogleCloudPlatform/python-docs-samples
Issues 55 https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests 254 https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actions https://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wiki https://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and quality 0 https://github.com/GoogleCloudPlatform/python-docs-samples/security
Insights https://github.com/GoogleCloudPlatform/python-docs-samples/pulse
Code https://github.com/GoogleCloudPlatform/python-docs-samples
Issues https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actions https://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wiki https://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and quality https://github.com/GoogleCloudPlatform/python-docs-samples/security
Insights https://github.com/GoogleCloudPlatform/python-docs-samples/pulse
michaelawyuhttps://github.com/michaelawyu
GoogleCloudPlatform:masterhttps://github.com/GoogleCloudPlatform/python-docs-samples/tree/master
iotmani:iotmani-patch-1https://github.com/iotmani/python-docs-samples/tree/iotmani-patch-1
Conversationhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
Commits5 (5)https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits
Checkshttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/checks
Files changedhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/files
Fix for error when missing MySQLdbhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#top
michaelawyuhttps://github.com/michaelawyu
GoogleCloudPlatform:masterhttps://github.com/GoogleCloudPlatform/python-docs-samples/tree/master
iotmani:iotmani-patch-1https://github.com/iotmani/python-docs-samples/tree/iotmani-patch-1
https://github.com/iotmani
iotmanihttps://github.com/iotmani
Oct 3, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issue-366486946
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
done for the python2 tutorial settings.py counterparthttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/django/mysite/settings.py#L95-L103
"production" on GAEhttps://console.cloud.google.com/errors/CIv9orry98OZRw?time=PT1H&project=expanded-talon-217815
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/iotmani
Fix for error when missing MySQLdbhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/123c4d59d921c8548a60fcb7f4996cd3c53828ba
123c4d5https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/123c4d59d921c8548a60fcb7f4996cd3c53828ba
https://github.com/googlebot
googlebothttps://github.com/googlebot
cla: yes https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22cla%3A%20yes%22
Oct 3, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#event-1882789566
https://github.com/iotmani
iotmanihttps://github.com/iotmani
Oct 10, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428395223
@theacodeshttps://github.com/theacodes
90bfd6ahttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/90bfd6a0c63f93d775a32562932041eb18b21f8d
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/theacodes
theacodeshttps://github.com/theacodes
andrewsghttps://github.com/andrewsg
October 10, 2018 00:16https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#event-1894247263
https://github.com/theacodes
theacodeshttps://github.com/theacodes
Oct 10, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428395560
@andrewsghttps://github.com/andrewsg
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/andrewsg
andrewsghttps://github.com/andrewsg
Oct 10, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428719120
@michaelawyuhttps://github.com/michaelawyu
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/andrewsg
andrewsghttps://github.com/andrewsg
michaelawyuhttps://github.com/michaelawyu
andrewsghttps://github.com/andrewsg
October 10, 2018 20:27https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#event-1896565755
https://github.com/michaelawyu
michaelawyuhttps://github.com/michaelawyu
Oct 10, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428767989
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
@iotmanihttps://github.com/iotmani
MySQLdb does not support Python 3https://pypi.org/project/MySQL-python/
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/iotmani
iotmanihttps://github.com/iotmani
Oct 10, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428770187
sample code uses engine 'django.db.backends.mysql'https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard_python37/django/mysite/settings.py#L88
it does import MySQLdbhttps://github.com/django/django/blob/stable/2.0.x/django/db/backends/mysql/base.py#L14-L20
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/michaelawyu
michaelawyuhttps://github.com/michaelawyu
Oct 11, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-428776831
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
@iotmanihttps://github.com/iotmani
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
October 10, 2018 17:31https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#commits-pushed-6fd7eb1
Update settings.pyhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/6fd7eb18b00f413496a261475a9c05d34c3e64e6
6fd7eb1https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/6fd7eb18b00f413496a261475a9c05d34c3e64e6
Merge branch 'master' into iotmani-patch-1https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/60b5d3de1c559fd44c15c1d166bf3c242a0ae08a
60b5d3dhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/60b5d3de1c559fd44c15c1d166bf3c242a0ae08a
Update settings.pyhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/d539ab6b973c5a069e7aef740becafa4cb96330a
d539ab6https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/d539ab6b973c5a069e7aef740becafa4cb96330a
Update settings.pyhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/16edbc2a31348f887928c9320be07c76f4fbd6c2
16edbc2https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/commits/16edbc2a31348f887928c9320be07c76f4fbd6c2
https://github.com/michaelawyu
michaelawyuhttps://github.com/michaelawyu
Oct 11, 2018 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#pullrequestreview-163613120
View reviewed changes https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/files/16edbc2a31348f887928c9320be07c76f4fbd6c2
https://github.com/michaelawyu
michaelawyuhttps://github.com/michaelawyu
a2f4c7fhttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/a2f4c7fa88d011ab6e5d4210c66ceac1f97fc59d
Oct 11, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#event-1896956052
https://github.com/iotmani
iotmanihttps://github.com/iotmani
Oct 11, 2018https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#issuecomment-429135876
@michaelawyuhttps://github.com/michaelawyu
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/iotmani
iotmanihttps://github.com/iotmani
Oct 11, 2018 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#ref-pullrequest-368893579
Database name missing for on production #1747 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1747
https://github.com/chalmerlowe
chalmerlowehttps://github.com/chalmerlowe
Apr 7, 2026 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#ref-pullrequest-4218691828
migrate code from googleapis/python-storage #13989 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/13989
chalmerlowehttps://github.com/chalmerlowe
Apr 7, 2026 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728#ref-commit-63731f2
https://github.com/chandra-siri
feat: Move Zonal Buckets features ofhttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/63731f21d2ab4cae1222e17a114b4fc75efbe674
_experimentalhttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/63731f21d2ab4cae1222e17a114b4fc75efbe674
(https://github.com/GoogleCloudPlatform/python-docs-samples/commit/63731f21d2ab4cae1222e17a114b4fc75efbe674
#1728https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
)https://github.com/GoogleCloudPlatform/python-docs-samples/commit/63731f21d2ab4cae1222e17a114b4fc75efbe674
63731f2https://github.com/GoogleCloudPlatform/python-docs-samples/commit/63731f21d2ab4cae1222e17a114b4fc75efbe674
https://github.co/hiddenchars
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F1728
https://github.com/michaelawyu
michaelawyu https://github.com/michaelawyu
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728/files/16edbc2a31348f887928c9320be07c76f4fbd6c2
cla: yes https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22cla%3A%20yes%22
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/1728
https://github.com/iotmani
https://github.com/theacodes
https://github.com/andrewsg
https://github.com/michaelawyu
https://github.com/googlebot
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.