Quantcast
Viewing all articles
Browse latest Browse all 21

Mysqldb not loading on hosting django application

@Rammanojpotla wrote:

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!!

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 21

Trending Articles