Include LOCAL_APPS before THIRD_PARTY_APPS in INSTALLED_APPS

This allows custom User model to be registered before THIRD_PARTY_APPS are imported.
THIRD_PARTY_APPS can now get the model registered with AUTH_USER_MODEL without throwing a LookupError.
This commit is contained in:
Aditya Narayan 2015-06-22 17:20:20 +05:30
parent 88a6ba641e
commit 6c6755ffb6

View File

@ -48,7 +48,7 @@ LOCAL_APPS = (
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
INSTALLED_APPS = DJANGO_APPS + LOCAL_APPS + THIRD_PARTY_APPS
# MIDDLEWARE CONFIGURATION
# ------------------------------------------------------------------------------