Top "Django-users" questions

User model is the default model in Django.

Get current user log in signal in Django

I am just using the admin site in Django. I have 2 Django signals (pre_save and post_save). I would …

django django-admin django-users
Multiple USERNAME_FIELD in django user model

My custom user model: class MyUser(AbstractBaseUser): username = models.CharField(unique=True,max_length=30) email = models.EmailField(unique=True,max_…

django django-authentication django-users
InconsistentMigrationHistory error with custom django user model

I am creating a custom user model. I ran the command python manage.py makemigrations accounts and then ran python …

python django django-models django-users
Issue with createsuperuser when implementing custom user model

I am trying to implement my own custom user model in Django 1.6 but I am getting this error. Traceback (most …

python django django-models django-users
ForeignKey to a Model field?

I want a foreign key relation in my model with the username field in the User table(that stores the …

python django django-models django-users django-database
Django 1.5: Accessing custom user model fields in models.py

I'm working on a Django 1.5 project and I have a custom user model (let's call it CustomUser). Another app (SomeApp) …

django django-models django-users django-1.5
using User.objects.get_or_create() gives invalid password format in django?

python manage.py shell >>> from django.contrib.auth.models import User >>> u=User.objects.…

django django-admin django-users
Django user.is_authenticated works some places, not others

In my template, I have the following: <ul class="tabbed" id="network-tabs"> {% if user.is_authenticated %} <li&…

django django-users
What is "swappable" in model meta for?

Looking tough django auth models code, I came across this bit of code: class User(AbstractUser): class Meta(AbstractUser.Meta): …

django django-models django-users django-settings
User manager methods create() and create_user()

I have encountered with some suspicious behavior of create() method of User object manager. Looks like password field isn't required …

django django-users django-managers