Perhaps replace `8` with `len('/static/')`, or even pull `'/static/' out into a local variable, just to be clear what you're stripping off.