Wikimedia Developer Support

Mysqldb not loading on hosting django application

I am trying to host the django app on toolforge and I’ve created a database using this tutorial: https://wikitech.wikimedia.org/wiki/Help:Toolforge/Database#User_databases

I hosted the django app and tried to integrate the mysql like:


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': env('DB_NAME'),
        'USER': env('DB_USER'),
        'PASSWORD': env('DB_PASSWORD'),
        'HOST': 'tools.db.svc.eqiad.wmflabs',
        'PORT': '3306',
    }
}

I am getting an error django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?

Can anyone help me with where I am going wrong!!

I did not install mysqlclient. After installing it, everything went right. Initially I thought, there is some problem with the host URL, so reported it here.

Thanks!!