diff --git a/src/core/pyros_django/pyros/settings.py b/src/core/pyros_django/pyros/settings.py index 90165e7..060c6c1 100644 --- a/src/core/pyros_django/pyros/settings.py +++ b/src/core/pyros_django/pyros/settings.py @@ -437,21 +437,24 @@ USE_L10N = True USE_TZ = True # To find the media files {{ MEDIA_URL }} -# change with Django 3.2 : media url can't be within static folder +# change with Django 3.2 : media url can't be within static folder +# Media file are for user uploaded content MEDIA_URL = '/public/media/' # To find the static files in the app/static/app/... folders -STATIC_URL = '/public/static/' +STATIC_URL = '/test/static/' #STATIC_URL = '/static/' # To find the static files in src/static/. Any local directory can be added to this list. STATICFILES_DIRS = ( os.path.join(BASE_DIR, "misc", "static"), + # prefix & path + ("devices_img",os.path.join(os.environ.get("PATH_TO_OBSCONF_FOLDER",""),"devices","img")), ) # Used for deployment (DEBUG = False). Need to run "python manage.py collectstatic" to fill it. -STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'public', 'static') +STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'test', 'static') # LOGGING = { # 'version': 1, -- libgit2 0.21.2