Re: Integrate dj-database-url into Django

2017-05-28 Thread Curtis Maloney
My django-classy-settings also supports env-based settings, in a declarative manner with defaults. What I've yet to crack (though the discussion is underway) is good formats for structured settings like caches and databases. Generally I use dj-database-url for my own projects :) I like the i

Re: Integrate dj-database-url into Django

2017-05-28 Thread linus
There's also https://github.com/doismellburning/django12factor - and it simplifies all the boilerplate, that is still required in django-environ, into: import django12factorglobals().update(django12factor.factorise()) It would be quite nice if Django supported 12factor configuration natively,

Re: Django directory design philosophy question

2017-05-28 Thread Adam Johnson
On (2), cookiecutter 's behaviour is to create a new directory and it probably gets more traffic than startproject. On 28 May 2017 at 15:04, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello, > > Sorry Adam, I'm going to argue for the o

Re: assertRaises vs. assertRaisesMessage

2017-05-28 Thread Mads Jensen
On Thursday, May 25, 2017 at 5:03:54 PM UTC+2, Shai Berger wrote: > > Hi, > > I apologize for re-raising a thread that's mostly done and decided, but I > just > ran into [1] where it says: > > """ > Note > > Exception messages are not part of the Python API. Their contents may > change > fr

Re: Django directory design philosophy question

2017-05-28 Thread Aymeric Augustin
Hello, Sorry Adam, I'm going to argue for the opposite position on both questions ;-) I don't think it's a good idea for add urls.py to startapp for three reasons: a. Even though Django's built-in boilerplates (startprojet and startapp) are fairly minimal, I've seen many projets with the dummy

Re: Django directory design philosophy question

2017-05-28 Thread Adam Johnson
1. I don't see why not. Even DRF apps need urls.py files right? 2. I think this is a minor issue and not worth worrying about, newbies should be able to move files and folders around appropriately on the filesystem. It's cleaner to put things in a subdirectory as it lowers the risk of overwriting e

Re: Responsive admin

2017-05-28 Thread elky
Bump! Sorry for so long silence. Seems it's done - I added some more tweaks to the app. Regarding third-party apps, I think the most less-painful ways to disable responsive css are: - override responsive.css or make it empty; - override admin base.html to remove tag which enables responsive s