Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Lack of defined hostname executes a print statement, raising IOError in mod_wsgi #3
If you don't have a value in settings.SERVER_NAME and aren't using django.contrib.sites, staticgenerator assumes localhost, but not before it issues a warning...by using a print statement. Since mod_wsgi doesn't let you print, this raises IOError and gives you a very unfriendly 500 page and a message in your error log. This really should be using