aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-06-19 22:48:17 +0300
committerFilipp Lepalaan <filipp@mac.com>2018-06-19 22:48:17 +0300
commit9e3f28c5633ef45f09d3cdd1eb6220ae150e002b (patch)
treeeb0ee7aface0943a17f4ce663b93bbf42b1fd779 /servo/management
parent85e92ff2ee4ca30e0144790a1d95b8023595bf2f (diff)
downloadServo-9e3f28c5633ef45f09d3cdd1eb6220ae150e002b.tar.gz
Servo-9e3f28c5633ef45f09d3cdd1eb6220ae150e002b.tar.bz2
Servo-9e3f28c5633ef45f09d3cdd1eb6220ae150e002b.zip
Installation fixes
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: