Questions tagged [django-users]

User model is the default model in Django. It provides many APIs which are helpful for working with users. Django user model is overridable in a Project according to required field.

Django(a high-level Python Web framework) comes with a user authentication system. It handles user accounts, groups, permissions and cookie-based user sessions.

894 questions
0
votes
2 answers

writing django signal hook to check whether user already exists

We recently switched from one LDAP system to another. Unfortunately, not only the LDAP server changed but all usernames did too. I managed to configure django_auth_ldap to deal with two LDAP servers, however I can not prevent the creation of new…
memyself
  • 11,907
  • 14
  • 61
  • 102
0
votes
1 answer

Userena set password after activation automatic signin

My users will be able to create users for their clients, which will send an activation email to them. With userena, the activation link will automatically log them in, even without a password being set. I have got to this point, where they are…
Kerridge0
  • 2,017
  • 19
  • 22
0
votes
1 answer

[django]: How to validate request for new account from mail?

I have simple form for create new user in Django. Also I want that request (from user) forward to the administrator's email, and just admin can enable that account. User has to wait respond from admin. If admin enable that account, user is going to…
prog.Dusan
  • 1,324
  • 2
  • 12
  • 25
0
votes
1 answer

Configure django UserManager to input date of birth for superuser?

Been messing with django 1.5 by creating my custom user model. In my model, I have a required field dob = DateTimeField(). I've kept pretty much the UserManager and the AbstractUser the same. However, when I try to python manage.py…
Derek
  • 11,980
  • 26
  • 103
  • 162
0
votes
1 answer

Django AbstractUser error when login in

I have created an AbstractUser model to add some extra fields to the standard usermodel. I think everything is set up correctly, but when I log in, I get this error: unbound method save() must be called with UserProfile instance as first argument…
Tomas Jacobsen
  • 2,368
  • 6
  • 37
  • 81
0
votes
1 answer

Multi User instances Logging simultaneously from one system using django

I'm new to django and very limited experience in the field so i thought you could help me out. I am trying to Build a Patient Health Record (PHR) system ,Where there are two types of users Owner and Doctor which are both instances of the User…
Vishnu667
  • 768
  • 1
  • 16
  • 39
0
votes
1 answer

Django: Accesing User fields from a filter in a ForeignKey

I want to fill a choice field with users who are not staff. I am using an extended user class (with a OneToOneField as mentioned in django docs): class Usuario(models.Model): user = models.OneToOneField (User) departamento =…
tjavier82
  • 3
  • 1
0
votes
1 answer

How do I link the User model with a Taxonomy model?

How do I link the User model with a Taxonomy model. How do add terms for a specific user and how can I retrieve them? I'm quite new to Django so you must excuse my lack of knowledge and for not grasping the specific terminology, yet. I have the…
0
votes
1 answer

usage of userena profiles in templates

Is there a way to get profile information from a userena profile in a template? Is there some sort of variable automatically passed? E.g: I can get the django user variable like this: {% if user.is_authenticated %} Hey {{ user.username }}. {%…
Jay
  • 2,519
  • 5
  • 25
  • 42
0
votes
1 answer

django user Authentication error?

i am new to django. i need to create a user log in system and i am following that tutorial user authentication and i am getting a particular error Error importing template source loader django.template.loaders.filesystem.load_template_source:…
0
votes
1 answer

Django, Google App Engine, datastore, user login

I am trying to setup a web app in django and deploy on GAE, I already had a setup for GAE,social-auth ( django-social-auth), now I am trying to add userena, to handle the user login; however, it cannot deploy on the GAE, since the userena wouldn't…
0
votes
2 answers

Google App engine, django, userena, database setup

I am trying to build a web app with GAE, Django. The user registration would be userena. I already use the django-nonrel and all the setup to get the first part working and I am trying to syncdb for userena. I am keep getting this errors, Could you…
0
votes
2 answers

Issues with auth_user table in django

I want to update some fields of auth_user table in django. Actually i am migrating some users from one website to another so i want to update the password field in auth_user table.But when i am using the update query it gives me some errors some…
user1746291
  • 323
  • 2
  • 5
  • 15
0
votes
1 answer

Django: extending User model avoiding DB join

In my Django app, I need to create a User Model with some extra fields. For DB performance, I would like to avoid to make a join everytime I want to access those fields. At DB level I would like to produce an ALTER TABLE on the user table to add…
0
votes
1 answer

Allow Group Creator/Owner Approve/Deny a user's request to join group

I want to have the ability for Users to request to join a Group the person who created the group would be called Owner and any non-Owner would have to request to join Owner's group. The Owner can approve or deny the request from the user. The Owner…
jmitchel3
  • 391
  • 3
  • 4
  • 17