Django: using {{STATIC_URL}} from python side
I'm not certain from your question if you understand the intention of the {{ STATIC_URL }} tag.  It is a URL prefix for static content files such as css, javascript, or image files.  It is not intended as a path for your own static HTML files.  In the end I'm not sure you are asking the right question for what you are wanting to accomplish.
Building a "history" system that serves static pages based on the date the user asks for. Not all dates have associated pages, and it isn't possible to know, based on what's in the database which do, which don't. I haven't been able to find a way to redirect to a static page because there doesn't seem to be any way to capture the value of the {{STATIC_URL}} tag on the python side. I have got some code that depends on the static file being on the same file system as the django server, but that is clearly wrong. I have two needs:
1: how can I (redirect?) to the static page(s) from my views.py file?
2: how can I query for the existence of a particular one of those static pages?