Before i go forward, I know this is a commonly asked question but I have searched the top questions related to this, and none of it seems to be helping..
Following: https://docs.djangoproject.com/en/2.2/intro/tutorial02/
What I have done:
py manage.py createsuperuser
Created user
I have confirmed the user is a superuser with:
from django.contrib.auth.models import User
active_staff = User.objects.filter(is_active=True, is_staff=True)
This will then list the super users
Although, when I do something like:
u = User(username="admin") u.is_staff False u.is_superuser False
Why is this?
I also then manually set to true, save(), then check, and it's now True. Try to log in, doesn't work. restart shell and check, it's back to false.
I tried the accepted answer here: Can't login to django admin after creating a super user with a custom user model
This: Admin page on django is broken
None have helped.
If there is anything i need to copy/paste from my Djnago app to help, pleaes let me know. I am new with Python and Django so I'm not exactly sure what to add to this question.