6
Check your modpython configuration, if you’ve got one. There may be a line that looks like PythonOption django.root /mysite
Remove that.
1
Are you sure, that this is the rendered version? Docs say, that an absolute url should be produced, i.e. /mysite/foo/bar
. Are you checking source in the browser? Try printing out the result of render_to_string
(or other rendering function you are using) and check, if there example.com is added too.
- [Django]-How to tag whole ViewSet in drf_yasg?
- [Django]-Problems with using Select2 and Bootstrap styling
- [Django]-Django models order_by non db field
- [Django]-Django Elastic Search: AttributeError: type object 'PostDocument' has no attribute 'Django'
Source:stackexchange.com