[Django]-Site name appearing in django URLs

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.

Leave a comment