{"action":"created","issue":{"url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/319","labels_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/319/comments","events_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/319/events","html_url":"https://github.com/pydanny/cookiecutter-django/pull/319","id":104333792,"number":319,"title":"Allowed hosts","user":{"login":"bogdal","id":1451824,"avatar_url":"https://avatars.githubusercontent.com/u/1451824?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdal","html_url":"https://github.com/bogdal","followers_url":"https://api.github.com/users/bogdal/followers","following_url":"https://api.github.com/users/bogdal/following{/other_user}","gists_url":"https://api.github.com/users/bogdal/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdal/subscriptions","organizations_url":"https://api.github.com/users/bogdal/orgs","repos_url":"https://api.github.com/users/bogdal/repos","events_url":"https://api.github.com/users/bogdal/events{/privacy}","received_events_url":"https://api.github.com/users/bogdal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T19:07:44Z","updated_at":"2015-09-02T17:55:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydanny/cookiecutter-django/pulls/319","html_url":"https://github.com/pydanny/cookiecutter-django/pull/319","diff_url":"https://github.com/pydanny/cookiecutter-django/pull/319.diff","patch_url":"https://github.com/pydanny/cookiecutter-django/pull/319.patch"},"body":"For security reasons, we should set explicitly list of allowed hosts."},"comment":{"url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/comments/137190276","html_url":"https://github.com/pydanny/cookiecutter-django/pull/319#issuecomment-137190276","issue_url":"https://api.github.com/repos/pydanny/cookiecutter-django/issues/319","id":137190276,"user":{"login":"pydanny","id":62857,"avatar_url":"https://avatars.githubusercontent.com/u/62857?v=3","gravatar_id":"","url":"https://api.github.com/users/pydanny","html_url":"https://github.com/pydanny","followers_url":"https://api.github.com/users/pydanny/followers","following_url":"https://api.github.com/users/pydanny/following{/other_user}","gists_url":"https://api.github.com/users/pydanny/gists{/gist_id}","starred_url":"https://api.github.com/users/pydanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydanny/subscriptions","organizations_url":"https://api.github.com/users/pydanny/orgs","repos_url":"https://api.github.com/users/pydanny/repos","events_url":"https://api.github.com/users/pydanny/events{/privacy}","received_events_url":"https://api.github.com/users/pydanny/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:55:50Z","updated_at":"2015-09-02T17:55:50Z","body":"I have a beef with `ALLOWED_HOSTS`, and that's the terrible error messages it provides when it isn't set correctly. What it does is:\r\n\r\n1. Throws 500 errors on page loads.\r\n2. Reports a nigh useless `SuspiciousOperation` in the logs. Doesn't explain what is causing the problem. Unless you are experienced at Django, this is tremendously annoying to debug. Even if you are experienced at Django, sometimes you stumble into it anyway.\r\n\r\nTherefore, if we're going to change the default from `[\"*\"]` to something else, we should do at least one of the following:\r\n\r\nA. Document that this has weak messages on error. Maybe in a deployment troubleshooting section?\r\nB. Figure out a way to improve the logging of the exception.\r\n\r\n\r\n\r\n"}}