python - Change the order in which Django migrate app during testing -


i using custom user model inherits abstractbaseuser class. when try migrate after makemigrations command

django.db.utils.programmingerror: relation "custom_user_users" not exist

this happening since django trying migrate other apps first depends upon custom user model. tried changing order of app contains custom user model in installed_app no luck.

i know can force migrate custom_user model first let django migrate other models. solves problem during running test runs migration in order django decides.

how can alter order in apps migrated during test ? other way solve dependency problem ?

i using django 1.8

put your apps before django apps in installed_app in settings.py file


Comments

Popular posts from this blog

ubuntu - How to disable Kernel Module Signing in linux -

java - Ebean enhancement ignores a model -

How to combine associative arrays in bash? -