Even with `FORCE_SCRIPT_NAME` `MEDIA_URL` is being prefixed properly, but not `STATIC_URL` .
Was `FORCE_SCRIPT_NAME` just not meant to be used with the `runserver` ? Arthur Pemberton On Fri, Jun 16, 2023 at 5:01 PM Arthur Pemberton <pemb...@gmail.com> wrote: > The docs reference `FORCE_SCRIPT_NAME` but say very little of how to use > it. > > Reading through the code, I see very little use of `SCRIPT_NAME` itself, > however as far as I can tell, use of `SCRIPT_NAME` is supposed to be how > one deploys Django at a sub-path. > > I had to modify wsgi.py per > https://ruddra.com/deploy-django-subpath-openshift/ to get things to work. > > Shouldn't this be a complete feature? > > I've re-checked https://docs.djangoproject.com/en/4.2/howto/deployment/ > and there's no information on the topic (that I could find). > > Arthur Pemberton > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CA%2BX4dQRYbJ4NnKD89ptsJHGx2EUxO4vqZH0oepHVAN%2Bf%3D7S_Ag%40mail.gmail.com.