django-authentication
Django: Changing User Profile by forms
I am using UserProfile to save some fields that I created. Its working fine. But I would like to create a new view to let 开发者_运维问答user change (update) theses fields values. But, theses values a[详细]
2023-03-20 15:28 分类:问答Implementation of sso with django auth. Is this safe?
I\'m trying to implement single sign-on using only django auth. Let\'s assume two django projects, on different sub-domains: site.com(auth) and app1.site.com(app1)[详细]
2023-03-17 09:59 分类:问答Is there a way to send a user email when user object is created?
In the system I am building user CAN NOT register them selves. The开发者_JAVA百科 users are added by one of the system admins. So there is no user registration form or view. The registration is only b[详细]
2023-03-17 04:18 分类:问答Django: Redirect to previous page *with query string* after login
I am using django.contrib.auth and would like to redirect to the previous page after logging in. I would like something like the following: Django: Redirect to previous page after login except the red[详细]
2023-03-16 05:46 分类:问答Django custom login form with a verify code field, request is NULL
I want to add a verify code field in the login form. So, I write a authentication_form which added a charField to generate a verify code and the verify code saved to the request.session.[详细]
2023-03-15 05:52 分类:问答custom form author - auto save author to DB
I have a custom form... I\'d like to auto save the author (authenticated user) for the form data. I\'m using ModelForm for creating the form.[详细]
2023-03-13 06:49 分类:问答Django Password Reset - DoesNotExist exception
The password_reset page of my Django site is causing a DoesNotExist exception after an email address is entered and the button pressed.[详细]
2023-03-09 05:37 分类:问答user auth template tags not working-Django
I used django-registration app. Everything goes fine. User gets registered with email verification but when user logs in and is redirected to mainpage the auth template tags such as {% if user.is_auth[详细]
2023-03-07 22:27 分类:问答How to use permission_required decorators on django class-based views
I\'m having a bit of trouble understanding how the new CBVs work. My question is this, I need to require login in all the views, and in some of them, specific permissions. In function-based views I do[详细]
2023-03-07 00:54 分类:问答Django-AttributeError 'User' object has no attribute 'backend' (But....it does?)
In order to sign users in after registering them, I manually set the user.backend property.It normally works in my views.In this instance, I\'m trying to register the user via AJAX.It is raising an At[详细]
2023-03-06 08:42 分类:问答