tethysplatform / tethys

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

Add MEDIA_URL and MEDIA_ROOT option #1028

Closed gagelarsen closed 7 months ago

gagelarsen commented 8 months ago

Changes Made:

coveralls commented 8 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 76b2c657ca52545f55e8df5ad193fda507d2cb71 on add_media into 9d5c55b1dd8783e6e9081e6f7eafa1ddaaede0c4 on main.

sdc50 commented 7 months ago

We should create a media directory in the app scaffold similar to the public directory, but that is runtime writable.

Create an API to write to the media directory (similar to the workspaces API).

swainn commented 7 months ago

We should create a media directory in the app scaffold similar to the public directory, but that is runtime writable.

Create an API to write to the media directory (similar to the workspaces API).

Except different than workspaces. Don't do collectworkspaces or symlink in production. The API would just know to write to MEDIA_ROOT.