0

i am trying but not connect , and installing in pip install mysqlclient getting error_mysql.c(29): fatal error C1083: Cannot open include file: 'my_config.h': No such file or directory

Adil B
  • 14,635
  • 11
  • 60
  • 78
ANIL UMARANE
  • 11
  • 1
  • 1
  • Welcome to Stack Overflow! To give you a great answer, it might help us if you have a glance at [ask] if you haven't already. It might be also useful if you could provide a [mcve]. – Mat Oct 23 '18 at 12:58

1 Answers1

0
you will configure your Django app to connect to MySQL. You will need to change the DATABASES dictionary to something along these lines:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'myproject',
        'USER': 'myprojectuser',
        'PASSWORD': 'password',
        'HOST': 'localhost',
        'PORT': '',
    }
}
Ammar Mehr
  • 67
  • 9