I\'m saving an user\'s default language in his user profile and on开发者_JS百科 login I want to set the admin\'s default language to it.
I\'d l开发者_如何学Pythonike to have these lines of code executed on server startup (both development and production):
Let\'s say I have a view: def pony_view(request, arg1, arg2): ... Make ponies, etc ... And a middleware:
I think that is the right way to ask it. I\'m wondering which parts of the code execute first, second, etc.