I have a Django application where I want to customize the authentication part. I've already done my own Authentication backend as well as set up my own Model that will be used in authentication.
The problem is that when I run the command python manage.py showmigrations
, the following migrations are appearing:
auth
[ ] 0001_initial
[ ] 0002_alter_permission_name_max_length
[ ] 0003_alter_user_email_max_length
[ ] 0004_alter_user_username_opts
[ ] 0005_alter_user_last_login_null
[ ] 0006_require_contenttypes_0002
[ ] 0007_alter_validators_add_error_messages
[ ] 0008_alter_user_username_max_length
[ ] 0009_alter_user_last_name_max_length
contenttypes
[ ] 0001_initial
[ ] 0002_remove_content_type_name
sessions
[ ] 0001_initial
How can I remove these migrations from auth
in Django? I plan to use a custom layout and I do not want to let any new tables be created.
Note: My settings.py
is set up as follows:
AUTHENTICATION_BACKENDS = ('app.backends.AuthBackend', )
AUTH_USER_MODEL = 'app.usuarios'