hello, something just came up on #django and I think it's worth asking here;
turns out current URLValidator
http://code.djangoproject.com/browser/django/tags/releases/1.2.1/django/core/validators.py#L41forbids
urls without protocol however the URLField that uses it tries to add
a default "http://";
looking at the order in which the methods are called on the Field class it
seems the default "http://"; is added before the validator gets called so it
should work as expected, don't know where the error in validation was coming
from.
On Fri, Jun 11, 2010 at 2:28 PM, Michae
(forms.Form):
... url = forms.URLField()
...
>>> form = MyForm({'url': 'www.example.com/http://foo/bar/'})
>>> form.is_valid()
False
http://www.rfc-ref.org/RFC-TEXTS/3986/chapter3.html#sub3
On Fri, Jun 11, 2010 at 3:21 PM, Michael Cetrulo wrote:
> loo
hello I'm trying to run the tests for trunk according to the instructions on
http://docs.djangoproject.com/en/dev/internals/contributing/#running-the-unit-testsI've
also installed the packages mentioned there but I get one error and
one
failure and since it's the first time I'm doing this I'm not s
ah nice, yeah I'm currently ssh'ing via putty so if it is like this I'll
assume everything passed and keep going; I'll test from a real terminal
tomorrow. thanks!
On Sun, Jun 20, 2010 at 8:11 PM, Alex Gaynor wrote:
> On Sun, Jun 20, 2010 at 5:57 PM, Michael Cetrulo
ticket: http://code.djangoproject.com/ticket/13804
also found a real-life scenario when this feature of the RFC is implemented,
the site reddit.com uses it for a shortcut that searchs/submits links to
their website, example:
http://www.reddit.com/s/http://code.djangoproject.com/ticket/13804
On Sa
Http403 would be nice too.
http://chronosbox.org/blog/manipulando-erros-http-403-permissao-negada-no-django?lang=en
http://theglenbot.com/creating-a-custom-http403-exception-in-django
http://groups.google.com/group/django-users/browse_thread/thread/8d3dda89858ff2ee
On Mon, Jun 28, 2010 at 12:36 P
regards,
> paluh
>
> 2010/6/28 Michael Cetrulo :
> > Http403 would be nice too.
> >
> >
> http://chronosbox.org/blog/manipulando-erros-http-403-permissao-negada-no-django?lang=en
> > http://theglenbot.com/creating-a-custom-http403-exception-in-django
> &
now I find odd that it might get translated to that, since it's a different
location than http module
On Mon, Jun 28, 2010 at 1:13 PM, Michael Cetrulo wrote:
> that's incorrect, we're talking about exceptions that go back as status
> codes not internals for the application
as I've said, that isn't http module; an Http403 would be nice.
On Mon, Jun 28, 2010 at 1:17 PM, Tom Evans wrote:
> On Mon, Jun 28, 2010 at 5:13 PM, Michael Cetrulo
> wrote:
> > that's incorrect, we're talking about exceptions that go back as status
> > c
erits from
django.core.exceptions.
PermissionDenied but it's just my opinion not a real problem.
2010/6/28 Ćukasz Rekucki
> On 28 June 2010 18:17, Tom Evans wrote:
> > On Mon, Jun 28, 2010 at 5:13 PM, Michael Cetrulo
> wrote:
> >> that's incorrect, we
hi guys, I find a bit too annoying to keep my admin.py synchronized with the
models in my apps and for that I've created myself a simple helper[1] which
takes app names and registers all models found on each.
with this I'm able to update my models when I'm developing and have them
automatically ad
12 matches
Mail list logo