Just go to the settings.py file and make the following changes in Database
section:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'your_DatabaseName',
'USER':'your_username',
'PASSWORD':'your_password',
'HOST':'localhost',
May we see some of your files..precisely settings.py...and have you
properly configured your MySQL app...either workbench or xampp?
On Apr 12, 2020 20:53, "Andrew Fetting" wrote:
> Have you tried
> pip3 install mysqlclient
>
> On Sun, Apr 12, 2020, 7:36 AM Arun Sharma
> wrote:
>
>> python
Have you tried
pip3 install mysqlclient
On Sun, Apr 12, 2020, 7:36 AM Arun Sharma wrote:
> python manage.py runserver
>
>
>
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
> File
>
python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File
"C:\Users\Arunkumar\PycharmProjects\app2\venv\lib\site-packages\django\db\backends\mysql\base.py",
line 16, in
import MySQLdb as
4 matches
Mail list logo