Return the currently active script prefix. Useful for client code that wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner).
()
| 127 | |
| 128 | |
| 129 | def get_script_prefix(): |
| 130 | """ |
| 131 | Return the currently active script prefix. Useful for client code that |
| 132 | wishes to construct their own URLs manually (although accessing the request |
| 133 | instance is normally going to be a lot cleaner). |
| 134 | """ |
| 135 | return getattr(_prefixes, "value", "/") |
| 136 | |
| 137 | |
| 138 | def clear_script_prefix(): |
no outgoing calls
no test coverage detected