django-authentication
Django: any way to avoid querying for request.user on every request?
For my website pretty much every page has a header bar displaying \"Welcome开发者_如何学编程, ABC\" where \"ABC\" is the username. That means request.user will be called for every single request resul[详细]
2023-03-04 19:20 分类:问答How can i do custom login with social security number and pass and not username or email?
Hallo all, Using django 1.3 on python 2.6.5 I\'m having a problem finding any help about this, I have a site that just has to (the client demands) authenticate the user login by socail securitynumbe[详细]
2023-03-04 02:46 分类:问答Help with Django RemoteUserMiddleware RemoteUserBackend with fresh database
The 1.3 release of Django includes the RemoteUserMiddleware and RemoteUserBackend classes to allow Apache to do authentication.[详细]
2023-03-02 20:55 分类:问答Django auth.user with unique email
I use the django.auth system and I\'ve this: class RegisterForm(UserCreationForm): username = forms.RegexField(label= \"Username\" , max_length = 30, regex = r\'^[\\w]+$\', error_messages = {\'invali[详细]
2023-02-28 05:22 分类:问答Django create custom UserCreationForm
I enabled the user auth module in Django, however when I use UserCreationForm it only asks for username and the two password/password confirmation fields. I also want email and fullname fields, all se[详细]
2023-02-27 09:26 分类:问答How do I use the The login_required decorator in my URL?
I want to check that the user is authorized for certain URLs. I\'m using generic views. The docs here say the login_required can be passed as an optional arguments but I\'m not sure. Something like t[详细]
2023-02-26 21:15 分类:问答Django: Why create a OneToOne to UserProfile instead of subclassing auth.User?
Note: If you are tempted to \'answer\' this question by telling me that you don\'t like django.contrib开发者_如何学运维.auth, please move on.That will not be helpful.I am well aware of the range and s[详细]
2023-02-20 16:19 分类:问答Implementing multiple administration levels in Django
I have decided to move a project from PHP to Python and despite hours of searching, I cannot find a way to implement the following design. I have attempted extending the user class and doing customise[详细]
2023-02-17 10:55 分类:问答django user profile database problem
I have app called aaa and in models.py in aaa i have sth like: from django.db import models from django.contrib.auth.models import User[详细]
2023-02-16 15:54 分类:问答Django - User admin - adding groups to list_display
As we know, ManytoMany relations can\'t be listed in list_display. Is there any work around to make it like gr开发者_如何学编程oup1, group2 etc?bonus: display group as a user filter:[详细]
2023-02-15 14:24 分类:问答