About the Hash Values of the Page

The hash values of the URL (everything that goes after #) are only accessible in the browser, not the web server.

So you can't read the hash values by Django nor redirect the user to a page with a specific hash value.

Instead, if you need to get those values on the server side, you must read them by JavaScript and send them to the server by Ajax, form submission, or WebSockets.

Tips and Tricks Programming Architecture Django 4.x Django 3.2 Django 2.2 JavaScript