Re: Silencing deprecation warnings in the test suite

2013-09-02 Thread Ramiro Morales
On Mon, Sep 2, 2013 at 8:08 AM, Aymeric Augustin wrote: > Hello, > > When a feature is deprecated, it raises a PendingDeprecationWarning, either > at import time or at run time. After the following release it raises > DeprecationWarning. Assuming we have a

Re: Circular dependency in forms+views+models

2013-09-02 Thread Marc Tamlyn
Opened a ticket - https://code.djangoproject.com/ticket/21022 On 2 September 2013 14:37, Russell Keith-Magee wrote: > > I agree with Marc -- the fix here is that you should be using a named URL, > not referencing the view directly. The circular dependency shouldn't

Re: Circular dependency in forms+views+models

2013-09-02 Thread Russell Keith-Magee
I agree with Marc -- the fix here is that you should be using a named URL, not referencing the view directly. The circular dependency shouldn't exist - it should be broken by the dereferencing provided by the URL name. This is a feature that was added late in the development of Django (well…

Re: Django Trac ticket keywords

2013-09-02 Thread Dan Poirier
On Thu. 2013-08-29 at 06:15 PM EDT, "Daniele Procida" wrote: > Would there be any objection if I used a keyword ("afraid_to_commit" > or something) to mark tickets that I think would be suitable for > first-time committers doing the "Don't be afraid to commit" tutorial > to

Silencing deprecation warnings in the test suite

2013-09-02 Thread Aymeric Augustin
Hello, When a feature is deprecated, it raises a PendingDeprecationWarning, either at import time or at run time. After the following release it raises DeprecationWarning. Assuming we have a good test coverage, these warnings will be shown by the test suite, with -Wall for

Re: Order of INSTALLED_APPS

2013-09-02 Thread Shai Berger
On Monday 02 September 2013 12:34:03 VernonCole wrote: > It also affects _how_ South works, not just _whether_ it works. Only this > week I had to install a patch for the formhub package which consisted of > re-ordering INSTALLED_APPS so that tables were built in the correct order > on PostgreSQL

Re: Circular dependency in forms+views+models

2013-09-02 Thread Marc Tamlyn
I think the main issue here is using the view (name OR instance) as the reference. We really should be pushing naming of urls more in the documentation - they're always mentioned but as a "you might prefer to do this" rather than a "use URL names on every URLpattern and in reverse. You could also

Re: Order of INSTALLED_APPS

2013-09-02 Thread VernonCole
It also affects _how_ South works, not just _whether_ it works. Only this week I had to install a patch for the formhub package which consisted of re-ordering INSTALLED_APPS so that tables were built in the correct order on PostgreSQL installations. On Sunday, September 1, 2013 11:04:03 PM