Hi Arthur, You've found the wrong mailing list for this thread. This mailing list is for discussing the development of Django itself, not for support using Django. I guess that's why no one replied.
If you would like to suggest a documentation change please do open a PR with reference to the information you found. Thanks, Adam On Fri, Jun 16, 2023 at 10:23 PM Arthur Pemberton <pemb...@gmail.com> wrote: > I found https://code.djangoproject.com/ticket/7930 seems like > `FORCE_SCRIPT_NAME` just isn't meant to work. > > Maybe the docs should reflect that. > > Arthur Pemberton > > On Fri, Jun 16, 2023 at 5:18 PM Arthur Pemberton <pemb...@gmail.com> > wrote: > >> 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%2BX4dQSQDcaApgWFmEE8MRERKbdHBBPh4KXa12pTi9FHO7zx1g%40mail.gmail.com > <https://groups.google.com/d/msgid/django-developers/CA%2BX4dQSQDcaApgWFmEE8MRERKbdHBBPh4KXa12pTi9FHO7zx1g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAMyDDM016eww3f5GBB1sPHJncf%2BWUHk7nLdQsf9ezUhJY0d9XQ%40mail.gmail.com.