Commit d51648f05e4788057a377066e7412e0e144cf0f4

Authored by Alexis Koralewski
1 parent 57dc2da1
Exists in dev

Change path for static folder

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
src/core/pyros_django/pyros/settings.py
... ... @@ -437,21 +437,24 @@ USE_L10N = True
437 437 USE_TZ = True
438 438  
439 439 # To find the media files {{ MEDIA_URL }}
440   -# change with Django 3.2 : media url can't be within static folder
  440 +# change with Django 3.2 : media url can't be within static folder
  441 +# Media file are for user uploaded content
441 442 MEDIA_URL = '/public/media/'
442 443  
443 444  
444 445 # To find the static files in the app/static/app/... folders
445   -STATIC_URL = '/public/static/'
  446 +STATIC_URL = '/test/static/'
446 447 #STATIC_URL = '/static/'
447 448  
448 449 # To find the static files in src/static/. Any local directory can be added to this list.
449 450 STATICFILES_DIRS = (
450 451 os.path.join(BASE_DIR, "misc", "static"),
  452 + # prefix & path
  453 + ("devices_img",os.path.join(os.environ.get("PATH_TO_OBSCONF_FOLDER",""),"devices","img")),
451 454 )
452 455  
453 456 # Used for deployment (DEBUG = False). Need to run "python manage.py collectstatic" to fill it.
454   -STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'public', 'static')
  457 +STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'test', 'static')
455 458  
456 459 # LOGGING = {
457 460 # 'version': 1,
... ...