2👍
i assume your database is hosted locally
so try changing this in your settings file for the database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mystic_db',
'USER': 'root',
'PASSWORD': '*****',
'HOST': '127.0.0.1', or localhost whatever you prefer
'PORT': '',
}
}
2👍
This was a problem because of improper installing of elastic search which I was using along with haystack module. Elastic search is built using Java, and requires at least Java 8 in order to run. Once I installed the same, the connection error urllib3.connection.HTTPConnection got alright.
👤Faz
- [Django]-Pycharm Setting up Mysql Database Driver
- [Django]-Excluding a single project file from an SVN repository
Source:stackexchange.com