From 6c6755ffb636e5186793d34b0f3af9a246241f15 Mon Sep 17 00:00:00 2001 From: Aditya Narayan Date: Mon, 22 Jun 2015 17:20:20 +0530 Subject: [PATCH] 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. --- {{cookiecutter.repo_name}}/config/settings/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index 96ab06112..262429e9f 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -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 # ------------------------------------------------------------------------------