Hi

The other day I raise a ticket to do with ALLOWED_HOSTS and it was 
suggested that I post on this group before creating a patch
The ticket is https://code.djangoproject.com/ticket/27485

The problem

Now that Django 1.10.3 forces ALLOWED_HOSTS on with debug I have a problem.
The problem is that when I developing I use an ip-address range of 
192.168.1.*. 
The Ip-address can change depending on the computer I use.
so I required the ability to add wildcard partly in an hostname.
ie 
ALLOWED_HOSTS = ['192.168.1.*', '.mydomain.com']
I have seen this solution that doesn't require Django to be changed however 
I don't like it as I feel this could be a security issue
​http://stackoverflow.com/questions/37031749/django-allowed-hosts-ips-range

I happy to do a patch for this. What do people think?

Tom



-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/7c03baf9-8d87-4716-be66-f6a642721a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • #27485... Thomas Turner
    • #... Yo-Yo Ma
      • ... Raphaël Barrois
    • R... Aymeric Augustin
    • R... 'Tom Evans' via Django developers (Contributions to Django itself)
      • ... Florian Apolloner
        • ... 'Tom Evans' via Django developers (Contributions to Django itself)
          • ... Tobias McNulty
    • R... Thomas Turner

Reply via email to