Monday, July 18, 2011

Re: FTP prefic in URL field

Thanks Tim,
I kinda guessed that would be the case. Thanks for the advice.

G

On Jul 15, 3:12 pm, Tim Shaffer <timshaf...@me.com> wrote:
> 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 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


Real Estate