Re: FTP prefic in URL field
Yeah, it doesn't look like 1.1 allowed for ftp protocol:
https://github.com/django/django/blob/1.1.X/django/forms/fields.py#L545
Best bet might be to create your own URLField class and overwrite the __init__ method to use your own regular expression. Kind of a pain. It's a little easier in future versions because you can just overwrite the validator instead of the whole field.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/LFaVqDivGQIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home