Re: #27485 new New feature Allow ALLOWED_HOSTS to accept an IP-range / wildcard

2016-11-17 Thread Thomas Turner
Thank you all. I will have a look to see if I can do it without patching. Tom On Thursday, November 17, 2016 at 12:42:56 AM UTC, Thomas Turner wrote: > > 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

Re: #27485 new New feature Allow ALLOWED_HOSTS to accept an IP-range / wildcard

2016-11-17 Thread 'Tom Evans' via Django developers (Contributions to Django itself)
On Wed, Nov 16, 2016 at 10:29 PM, Thomas Turner wrote: > 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

Help with plugin development (esp. djangocms-helper)

2016-11-17 Thread Brian Rutledge
In the process of submitting a PR for djangocms-style , I ran into some snags with getting my development environment set up. I started by following the instructions under Running Tests ,

Re: Feature idea

2016-11-17 Thread Aymeric Augustin
Hello Bruno, This is getting quite specific. In that case, I think a third-party, pluggable application is a better way to do this. Best regards, -- Aymeric. > On 17 Nov 2016, at 13:38, Bruno Ribeiro da Silva > wrote: > > Guys, > > Thanks for the feedback. My

Re: Feature idea

2016-11-17 Thread Bruno Ribeiro da Silva
Guys, Thanks for the feedback. My initial thought was to have a more complete approach to this problem, there is always the case that the admin who is creating the user doesn't know the person's full name and/or what to use for username. This is the flow that I had in mind: - Admin goes to user

Re: Feature idea

2016-11-17 Thread Curtis Maloney
My solution to the "initial password problem" is to send a password reset token first... And Django has this built in, handily :) http://musings.tinbrain.net/blog/2014/sep/21/registration-django-easy-way/ It would be very easy to use the same approach for an "invite" registration pattern.

Re: #27485 new New feature Allow ALLOWED_HOSTS to accept an IP-range / wildcard

2016-11-17 Thread Aymeric Augustin
Hello, If changes are made in this direction, allowing ip address and ip network objects in addition to strings would likely be the best API: https://docs.python.org/3/library/ipaddress.html#ipaddress.ip_network That

Re: Feature idea

2016-11-17 Thread Aymeric Augustin
Hello, > On 16 Nov 2016, at 21:22, Anthony King wrote: > Sending a link to set a password isn't much better. > The cardinal rule of passwords is “you must be the only person who knows your password”. This means never writing it down anywhere, except in a proper

Re: #27485 new New feature Allow ALLOWED_HOSTS to accept an IP-range / wildcard

2016-11-17 Thread Raphaël Barrois
On Wed, 16 Nov 2016 20:32:34 -0800 (PST) Yo-Yo Ma wrote: > I'm not a fan of adding more complexity, for a couple reasons: > > 1) you have the ['*'] option for local / office development > 2) you can just add a record to /etc/hosts to point to the server and then > use