mirror of
https://github.com/jointakahe/takahe.git
synced 2025-03-13 19:12:39 +00:00
parent
1e54a0b2be
commit
43ba09a16e
1 changed files with 4 additions and 0 deletions
|
@ -400,6 +400,10 @@ if SETUP.MEDIA_BACKEND:
|
|||
raise ValueError(
|
||||
"You must provide MEDIA_ROOT and MEDIA_URL for a local media backend"
|
||||
)
|
||||
if "://" not in MEDIA_URL and not DEBUG:
|
||||
raise ValueError(
|
||||
"The MEDIA_URL setting must start with https://your-domain"
|
||||
)
|
||||
else:
|
||||
raise ValueError(f"Unsupported media backend {parsed.scheme}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue