Re: URLField and Web Sockets URLs

2012-10-05 Thread Julian Cerruti
Thanks Kurtis and Russ. For now, since this is a very minor feature of my app, I decided to go the easy route and turn my field into a CharField. When I get some more time I will try to exercise the contribution mechanism as a way to get more familiarized with it. Thank you guys both for your

Re: URLField and Web Sockets URLs

2012-10-04 Thread Russell Keith-Magee
On Fri, Oct 5, 2012 at 12:51 AM, Julian Cerruti wrote: > Apparently the current implementation of URLField rejects Web Sockets URLs > such as ws://my.server.com/ > > This seems to be due to the implementation of the underlying URLValidator, > which has a regex to search for ftp or http based URLs

Re: URLField and Web Sockets URLs

2012-10-04 Thread Kurtis Mullins
Looks like this is similar and shows that people want other protocols as well: http://stackoverflow.com/questions/8778416/what-are-the-valid-values-for-a-django-url-field You could modify the validator's regex but I imagine the cleanest way to do this would be to make a copy of it in your own code