As the error indicates, you need to modify the Django settings module and set 
ALLOWED_HOSTS settings appropriately.

It is suggesting you set it to:

    ALLOWED_HOSTS = [‘dsite1.me’]

corresponding to the names of the sites your Django site is hosting for.

If unsure, set it to:

    ALLOWED_HOSTS = [‘*’]

Ensure those are all single quotes. Stupid email program is turning them into 
fancy balanced quotes.

Graham

> On 1 Dec 2016, at 6:13 PM, Jaqen Nki <[email protected]> wrote:
> 
> You are right, coda2 editor somehow screws up python code indentation.  Fixed 
> that.  now getting this in django debugger in browser:
> 
> DisallowedHost at /
> 
> Invalid HTTP_HOST header: 'dsite1.me'. You may need to add 'dsite1.me' to 
> ALLOWED_HOSTS.
> 
> 
> Traceback:
> 
> File 
> "/var/www/dtuts/venv/lib/python3.5/site-packages/django/core/handlers/exception.py"
>  in inner
>   39.             response = get_response(request)
> 
> File 
> "/var/www/dtuts/venv/lib/python3.5/site-packages/django/utils/deprecation.py" 
> in __call__
>   134.             response = self.process_request(request)
> 
> File 
> "/var/www/dtuts/venv/lib/python3.5/site-packages/django/middleware/common.py" 
> in process_request
>   57.         host = request.get_host()
> 
> File "/var/www/dtuts/venv/lib/python3.5/site-packages/django/http/request.py" 
> in get_host
>   113.             raise DisallowedHost(msg)
> 
> Exception Type: DisallowedHost at /
> Exception Value: Invalid HTTP_HOST header: 'dsite1.me'. You may need to add 
> 'dsite1.me' to ALLOWED_HOSTS.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to