Prefix use in reversing urls

2015-03-08 Thread Bas Peschier
Hi all, currently the reversing mechanism for urls accepts a prefix-kwarg [1], which is not documented [2]. It seems like this prefix is used to prefix the entire generated url and make script_name possible, to which it defaults. It is not used in the entire code base except for tests which ca

Re: App-loading reloaded - running code at startup

2013-12-30 Thread Bas Peschier
Op maandag 30 december 2013 17:16:21 UTC+1 schreef Aymeric Augustin: > > On 30 déc. 2013, at 13:29, Aymeric Augustin > > > wrote: > > [...] > > The real question — is requiring django.setup() acceptable? Explicit is > better than implicit, after all… > > As far as I can see only people who l

Declarable FormSet and friends

2011-06-17 Thread Bas Peschier
Hello everyone, after discussion on IRC with rasca I opened up a ticket [1] about making FormSets declarable. We have been down this route with ModelForm and it seems to make sense to be able to declare your FormSet somewhere instead of having to generate it. The idea given is you can do: cla

Re: ImportError catching in urlresolvers.py

2011-06-16 Thread Bas Peschier
For reference, I added a patch to https://code.djangoproject.com/ticket/10802 which takes Russell's approach. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubs

Re: ImportError catching in urlresolvers.py

2011-06-15 Thread Bas Peschier
On 15 jun, 07:36, Russell Keith-Magee wrote: > In this case, the underlying problem is that ImportError is actually > catching 2 different errors: >  1) The view specified doesn't exist >  2) The module containing the view contains an error. Agreed, in this case this information is lost in get_