Change MEDIA_URL to an absolute URL in tests (#4460)

* fixture for changing media url

* Customise MEDIA_URL setting instead of using fixture

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
itisnotyourenv 2023-08-28 21:02:09 +03:00 committed by GitHub
parent c021908c43
commit b117f003fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,11 @@ EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
# ------------------------------------------------------------------------------
TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa: F405
# MEDIA
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL = 'http://media.testserver'
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
# django-webpack-loader
# ------------------------------------------------------------------------------