Changes between Initial Version and Version 1 of Ticket #27485, comment 2
- Timestamp:
- Dec 19, 2016, 5:12:40 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27485, comment 2
initial v1 1 After posting on the group there are wayround the problem.1 After [https://groups.google.com/d/topic/django-developers/6EpENJ3BK1k/discussion posting on the group], there are ways around the problem. 2 2 3 The one I going with is3 The one I'm going with is: 4 4 5 5 {{{ 6 6 from socket import gethostname, gethostbyname 7 ALLOWED_HOSTS = [ gethostname(), gethostbyname(gethostname()),]7 ALLOWED_HOSTS = [gethostname(), gethostbyname(gethostname())] 8 8 }}}