Hi Adam, On Saturday, December 29, 2018 at 7:59:44 PM UTC+1, Adam Johnson wrote: > > since request.META is always there whilst attributes might not be if the > middleware aren't set up properly? >
request.META is always there, but the keys inside there might not be. In that sense you have to do "key in request.META" like we do with "hasattr(request, key)" if you are not sure on whether process_request of the middleware did actually set that stuff. > It seems like it could just be oversight. I would think that moving would > require a standard deprecation period. > Unless we documented the attributes/keys I'd consider it an implementation detail of the middleware. Cheers, Florian -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/fa76d5eb-68c6-4f9d-859d-3eb48011ae23%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.