Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-19 Thread Ramiro Morales
On Wed, Dec 18, 2013 at 12:57 PM, Harry Percival wrote: > Django's test runner overrides your settings to force DEBUG to be True, > which I understand the intention behind, but it is occasionally annoying. > One solution for those cases is to use `override_settings`, but that has > very weird effe

Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-19 Thread Russell Keith-Magee
On Thu, Dec 19, 2013 at 7:36 PM, Harry Percival wrote: > Thanks gang. > > @Russell, I assume you meant set MEDIA_URL = "/media/" > Heh. Now we're even on really dumb typos :-) > That works if I do it in settings.py. Interestingly, it doesn't work if I > try and do it via override_settings? >

Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-19 Thread Harry Percival
Thanks gang. @Russell, I assume you meant set MEDIA_URL = "/media/" That works if I do it in settings.py. Interestingly, it doesn't work if I try and do it via override_settings? On Thursday, 19 December 2013 08:16:59 UTC, Aymeric Augustin wrote: > > On 19 déc. 2013, at 02:14, Russell Keith-

Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-19 Thread Aymeric Augustin
On 19 déc. 2013, at 02:14, Russell Keith-Magee wrote: > The upside - If you add MEDIA_ROOT='/media/' to settings.py, the problem goes > away, because it gives the media layer something to match against that won't > catch all files. I hit that issue a month ago and filed https://code.djangopro

Re: LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-18 Thread Russell Keith-Magee
On Wed, Dec 18, 2013 at 11:57 PM, Harry Percival wrote: > Django's test runner overrides your settings to force DEBUG to be True, > which I understand the intention behind, but it is occasionally annoying. > One solution for those cases is to use `override_settings`, but that has > very weird effe

LiveServerTestCase, and override_settings(DEBUG=True)

2013-12-18 Thread Harry Percival
Django's test runner overrides your settings to force DEBUG to be True, which I understand the intention behind, but it is occasionally annoying. One solution for those cases is to use `override_settings`, but that has very weird effects when using `LiveServerTestCase`. Minimal repro: dja