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 5.x Django 4.2 Django 3.2 JavaScript
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.