Re: An idea for the URL dispatcher

2013-03-20 Thread Carl Meyer
Hi Daniele, On 03/20/2013 05:46 AM, Daniele Procida wrote: > I have an idea for the URL dispatcher, and I'd like to know what your > thoughts are. > > Often - not always but often - a Django URL will map to a model > instance via a URLconf and a view. > > I can think of a few uses for a feature

Re: Tests of contrib apps

2013-03-20 Thread Mikhail Korobov
среда, 20 марта 2013 г., 21:22:10 UTC+6 пользователь Aymeric Augustin написал: > > On 20 mars 2013, at 11:22, Russell Keith-Magee > > > wrote: > > > Personally, I'd rather see the opposite -- contrib apps containing their > own tests, and the tests directory containing just the tests for Dja

Re: Tests of contrib apps

2013-03-20 Thread Aymeric Augustin
On 20 mars 2013, at 11:22, Russell Keith-Magee wrote: > Personally, I'd rather see the opposite -- contrib apps containing their own > tests, and the tests directory containing just the tests for Django itself. > That enforces the fact that the apps really are self contained apps, and can > be

Re: Tests of contrib apps

2013-03-20 Thread Loic Bistuer
I run a custom DjangoTestSuiteRunner specifically to filter these out. +1 -- Loic On Mar 20, 2013, at 4:26 PM, Aymeric Augustin wrote: > - they won't be run by './manage.py test' -- You received this message because you are subscribed to the Google Groups "Django developers" group. To uns

An idea for the URL dispatcher

2013-03-20 Thread Daniele Procida
I have an idea for the URL dispatcher, and I'd like to know what your thoughts are. Often - not always but often - a Django URL will map to a model instance via a URLconf and a view. I can think of a few uses for a feature that used Django's URLconfs to return the model instance, if there is o

Re: Tests of contrib apps

2013-03-20 Thread Russell Keith-Magee
On Wed, Mar 20, 2013 at 5:26 PM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello, > > Currently there are three locations for the tests of contrib apps: > - under tests/ — eg. admin > - inside the app — eg. auth > - both — eg. contenttypes > > Following the modeltests / regre

Tests of contrib apps

2013-03-20 Thread Aymeric Augustin
Hello, Currently there are three locations for the tests of contrib apps: - under tests/ — eg. admin - inside the app — eg. auth - both — eg. contenttypes Following the modeltests / regressiontests merge, I propose to move all contrib app tests under tests/. This has de following advantages: - i