Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Lack of defined hostname executes a print statement, raising IOError in mod_wsgi #3

Open
lukesneeringer opened this Issue · 0 comments

1 participant

@lukesneeringer

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 warnings.warn instead. Better yet, it should just not issue a warning at all (why does it matter if it's set to localhost if you're not using the sites framework?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.