aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
Diffstat (limited to 'servo/management')
-rw-r--r--servo/management/commands/makedirs.py3
1 files changed, 3 insertions, 0 deletions
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: