Closed pauloxnet closed 4 years ago
Can you describe the scenario, why you need this in more detail please?
Django sets MEDIA_URL=''
and STATIC_URL=None
by default in global_settings.py
, so any project should have it.
Have you tried simply not using any URL starting with "file:"? In that case the code-path using MEDIA_URL
and STATIC_URL
is never used.
When MEDIA_URL='' and STATIC_URL is defined, MEDIA_URL is always matched even for STATIC_URL prefixed urls.
In
django_url_fetcher
permit to have undefinedMEDIA_URL
andSTATIC_URL
.