Changes between Initial Version and Version 1 of Ticket #27485, comment 2


Ignore:
Timestamp:
Dec 19, 2016, 5:12:40 PM (7 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27485, comment 2

    initial v1  
    1 After posting on the group there are way round the problem.
     1After [https://groups.google.com/d/topic/django-developers/6EpENJ3BK1k/discussion posting on the group], there are ways around the problem.
    22
    3 The one I going with is
     3The one I'm going with is:
    44
    55{{{
    66from socket import gethostname, gethostbyname
    7 ALLOWED_HOSTS = [ gethostname(), gethostbyname(gethostname()), ]
     7ALLOWED_HOSTS = [gethostname(), gethostbyname(gethostname())]
    88}}}
Back to Top