Solved the issue. I've elected to post what I did to resolve the error in the hope that it may serve as some assistance to others that encounter this issue and indeed stumble across this post in an attempt to realise a prompt resolution:
So, in a nutshell, it would seem that there was some issue with the default Django MySQL driver that was, in turn, preventing remote connections from being established. To resolve this I (pip) installed this tool: https://github.com/jacobian/dj-database-url which acts as a wrapper around various database drivers. I then proceeded to import the utility to my settings.py and updated the DATABASE variable assignment to read as follows:
DATABASES['default'] = dj_database_url.config(default='mysql://'+os.environ['DATABASE_USERNAME']+':'+os.environ['DATABASE_PASSWORD']+'@'+os.environ['DATABASE_HOST']+':'+os.environ['DATABASE_PORT']+'/'+os.environ['DATABASE_NAME'])
notice the use of
dj_database_url.config in place of the direct dictionary based assignment prior. After making this change, both local and remote database connections were able to be successfully established.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…