[Answer]-How to set default url in settings.py for "www.example.com/path"

1👍

In your settings.py, add FORCE_SCRIPT_NAME = 'path', where 'path' is the directory where the project resides.

For example, if your site exists at http://john.example.com/mywebsite, settings.py would contain FORCE_SCRIPT_NAME = '/mywebsite'.

Leave a comment