From 9e3f28c5633ef45f09d3cdd1eb6220ae150e002b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 19 Jun 2018 22:48:17 +0300 Subject: Installation fixes --- servo/management/commands/makedirs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servo') diff --git a/servo/management/commands/makedirs.py b/servo/management/commands/makedirs.py index 2718f5f..16a9913 100644 --- a/servo/management/commands/makedirs.py +++ b/servo/management/commands/makedirs.py @@ -13,6 +13,9 @@ class Command(BaseCommand): 'products', 'repairs', 'return_labels', 'settings', 'temp', 'templates'] + if not os.path.exists(settings.MEDIA_ROOT): + os.mkdir(settings.MEDIA_ROOT) + for d in dirs: fp = os.path.join(settings.MEDIA_ROOT, d) try: -- cgit v1.2.3