1👍
This was a bug in Django which appears to be fixed on the current master (1.7dev), the 1.6 pre-releases and the 1.5.X stable (1.5.4) https://code.djangoproject.com/ticket/17744
0👍
I solved using:
-
tests.py
class OutputDataModule(TransactionTestCase): def test_01(self): with self.settings(MEDIA_ROOT='/srv/http/my_proj/test'): myFunc()
Maybe it’s a bug of the ovverride_settings() decorator only…
- [Answer]-State considerations when converting a python desktop application into a web app?
- [Answer]-Django – Looking for a good way to cache a dictionary
- [Answer]-Building reusable package in django
- [Answer]-Django form validation on create view only
Source:stackexchange.com