amazon-web-services django mysql

Getting Unknown MySQL server host in Django

I have a MySQL RDS instance with Amazon’s AWS as the database for my Django app. When I do run the command python runserver, I get this error:

(2005, "Unknown MySQL server host '' (2)")

I can connect to the database using MySQL Workbench though. When I run the app through Apache, there are no problems either. I tried restarting the RDS instance but that didn’t resolve the issue.

What is going on here and how do I fix it?