Merge lp:~nicopace/charms/trusty/python-django/allowed_host_patch into lp:charms/python-django
Proposed by
nicopace
on 2015-04-01
| Status: | Merged |
|---|---|
| Merged at revision: | 37 |
| Proposed branch: | lp:~nicopace/charms/trusty/python-django/allowed_host_patch |
| Merge into: | lp:charms/python-django |
| Diff against target: |
12 lines (+2/-1) 1 file modified
hooks/hooks.py (+2/-1) |
| To merge this branch: | bzr merge lp:~nicopace/charms/trusty/python-django/allowed_host_patch |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Ceppi | 2015-04-01 | Approve on 2015-04-22 | |
| Kevin W Monroe | Approve on 2015-04-02 | ||
|
Review via email:
|
|||
Description of the Change
there is a bug that rised when implementing gunicorn tests, that showed a 400 error on every request to gunicorn published python-django charm.
While I was digging over that bug, i discovered that, despite the documentation stated that if you don't specify a django_
This patch solves that problem.
To post a comment you must log in.

I was able to verify the 400 errors without your changes, and I saw the default hostname/fqdn/ip were not being set in ./juju- settings/ 30-allowed. py.
I then applied your changes and verified successful page requests as well as correct defaults in 30-allowed.py when django_ allowed_ hosts is empty.
We'll get an official ~charmer ack soon, but until then, +1 LGTM. Thanks for the fix!