[Fixed]-Can we get request parameters from Django settings or other variables?

1👍

it’d save me the trouble of modifying all the functions.

You wouldn’t have to if you provide a default.

def commonfunction(request=None):

This of course means that any existing function calls won’t be able to use the request until you update them so you’ll need a check to make sure the request isn’t none in this function.

There isn’t any way you could use a global variable since that won’t work asyncronously

👤Sayse

Leave a comment