Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
django
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Dom Sekotill
django
Commits
92d323cc
Commit
92d323cc
authored
8 years ago
by
Adam Dobrawy
Committed by
Tim Graham
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added package names to 'Error loading MySQLdb module' error.
parent
5f8da229
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
django/db/backends/mysql/base.py
+4
-1
4 additions, 1 deletion
django/db/backends/mysql/base.py
with
4 additions
and
1 deletion
django/db/backends/mysql/base.py
+
4
−
1
View file @
92d323cc
...
...
@@ -25,7 +25,10 @@ try:
import
MySQLdb
as
Database
except
ImportError
as
e
:
from
django.core.exceptions
import
ImproperlyConfigured
raise
ImproperlyConfigured
(
"
Error loading MySQLdb module: %s
"
%
e
)
raise
ImproperlyConfigured
(
'
Error loading MySQLdb module: %s.
\n
'
'
Did you install mysqlclient or MySQL-python?
'
%
e
)
from
MySQLdb.constants
import
CLIENT
,
FIELD_TYPE
# isort:skip
from
MySQLdb.converters
import
Thing2Literal
,
conversions
# isort:skip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment