def add_middlewares(middlewares, after=
    'django.contrib.auth.middleware.AuthenticationMiddleware'):
    """ adds middlewares depending on django.VERSION """
    middlewares.append('pwdtk.middlewares.PwdtkMiddleware')
