@aaPanel_Kern Dear Sir, Can you reply for my issue? I try so mo time. I got this error message again and again. Please Sir.
[root@win DjangoBlog]# /www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/bin/python3 manage.py makemigrations
Traceback (most recent call last):
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 15, in <module>
import MySQLdb as Database
ModuleNotFoundError: No module named 'MySQLdb'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/importlib/init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in gcd_import
File "<frozen importlib.bootstrap>", line 991, in find_and_load
File "<frozen importlib.bootstrap>", line 975, in find_and_load_unlocked
File "<frozen importlib.bootstrap>", line 671, in load_unlocked
File "<frozen importlib.bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in call_with_frames_removed
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/contrib/auth/models.py", line 3, in <module>
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/contrib/auth/base_user.py", line 57, in <module>
class AbstractBaseUser(models.Model):
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/models/base.py", line 143, in new
new_class.add_to_class("meta", Options(meta, app_label))
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/models/base.py", line 371, in add_to_class
value.contribute_to_class(cls, name)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/models/options.py", line 243, in contribute_to_class
self.db_table, connection.ops.max_name_length()
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/utils/connection.py", line 15, in getattr
return getattr(self.connections[self.alias], item)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/utils/connection.py", line 62, in getitem
conn = self.create_connection(alias)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/utils.py", line 193, in create_connection
backend = load_backend(db["ENGINE"])
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/utils.py", line 113, in load_backend
return import_module("%s.base" % backend_name)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/importlib/init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "/www/wwwroot/DjangoBlog/8658305af42d6efded53c296d677d3ba_venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 17, in <module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?