def getdb(): print(request.session['process']) return request.session['process']
I need to access this function in class Meta: in django I am not passing request as parameter, but I want to access session variable without request inside a function.
2.1m questions
2.1m answers
60 comments
57.0k users