Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Allow to override STATIC_URL and MEDIA_URL with env variables
Artur Smęt33775478642a
diff --git a/saleor/settings.py b/saleor/settings.pyindex 6a6f13e195..e4922189d2 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -114,10 +114,10 @@ DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL')ORDER_FROM_EMAIL = os.getenv('ORDER_FROM_EMAIL', DEFAULT_FROM_EMAIL)MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')-MEDIA_URL = '/media/'+MEDIA_URL = os.environ.get('MEDIA_URL', '/media/')STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')-STATIC_URL = '/static/'+STATIC_URL = os.environ.get('STATIC_URL', '/static/')STATICFILES_DIRS = [('assets', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'assets')),('favicons', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'favicons')),