tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
91 stars 50 forks source link

Update Dockerfile with MEDIA_URL and MEDIA_ROOT options #1046

Closed James-Dolinar closed 2 months ago

James-Dolinar commented 2 months ago

Fixed the MEDIA_URL and MEDIA_ROOT options in the Dockerfile to fix the following error:

  File "/usr/lib/tethys/tethys/tethys_portal/urls.py", line 25, in <module>
    from tethys_apps.urls import extension_urls
  File "/usr/lib/tethys/tethys/tethys_apps/urls.py", line 28, in <module>
    ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/tethys/lib/python3.12/site-packages/django/conf/urls/static.py", line 22, in static
    raise ImproperlyConfigured("Empty static prefix not permitted")
django.core.exceptions.ImproperlyConfigured: Empty static prefix not permitted
coveralls commented 2 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 3b303f21582a2fe8e9dfde9479819fc1ddeb71a8 on James-Dolinar:fix-gages-mistake into 728e78fb337ef68ea89328797d2968cef46ec735 on tethysplatform:main.