-#load optional plugin module for external password login
-if 'USE_EXTERNAL_LEGACY_LOGIN' in locals() and USE_EXTERNAL_LEGACY_LOGIN:
- INSTALLED_APPS.append(EXTERNAL_LEGACY_LOGIN_MODULE)
-
- if 'EXTERNAL_LEGACY_LOGIN_AUTHENTICATION_BACKEND' in locals():
- AUTHENTICATION_BACKENDS.append(EXTERNAL_LEGACY_LOGIN_AUTHENTICATION_BACKEND)
- if 'EXTERNAL_LEGACY_LOGIN_AUTHENTICATION_MIDDLEWARE' in locals():
- MIDDLEWARE_CLASSES.append(EXTERNAL_LEGACY_LOGIN_AUTHENTICATION_MIDDLEWARE)
- def LOAD_EXTERNAL_LOGIN_APP():
- return __import__(EXTERNAL_LEGACY_LOGIN_MODULE, [], [], ['api','forms','views'])
-else:
- LOAD_EXTERNAL_LOGIN_APP = lambda: None