diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-27 11:50:35 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-27 11:50:35 +0100 |
commit | 32622951f2e0ee9a0513f3f407433a904f10486a (patch) | |
tree | aed6e9a4f0b25f9a125c62938023beaef3ab126e | |
parent | 5871c9d90c016ed0411cefa25d6565895289c8db (diff) | |
download | Ishtar-32622951f2e0ee9a0513f3f407433a904f10486a.tar.bz2 Ishtar-32622951f2e0ee9a0513f3f407433a904f10486a.zip |
Add explicitly parent directory to the sys path when running tests
-rw-r--r-- | example_project/settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index a5db9ecc3..e124198aa 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -10,6 +10,9 @@ DEBUG_TOOLBAR = False TEMPLATE_DEBUG = DEBUG SQL_DEBUG = False +if "test" in sys.argv: + sys.path.insert(0, '..') + IMAGE_MAX_SIZE = (1024, 768) THUMB_MAX_SIZE = (300, 300) |