Xingzhe Li

Results 5 comments of Xingzhe Li

It looks like the test leaked. This didn't happen on Linux. Let me fix that.

@apollo13 I believe this shouldn't be an issue because the request is handled in one thread in WSGI, or one task in ASGI. So when the request handler sets the...

@apollo13 This fix does not break anything. Let me explain. The way it works before the fix, as you said, is that the main thread caches the `STATIC_URL` once, and...

> Yes, accessing `STATIC_URL` to early (kinda before a request arrives) will break it -- and we should see about fixing that. That said, settings in Django are supposed to...

> > However, `STATIC_URL` is already an exception in the codebase. The existence of `LazySettings._add_script_prefix` proves that this setting was intended to be dynamic and aware of the script prefix...