django-authentication
Django authentication - wrong redirect url to login page
When a user is not logged I\'m trying to enter areas of site for authenticated users only I should be redirected to my login site with ?next= and here my LOGIN_REDIRECT_URL from settings. But instead[详细]
2023-01-09 06:14 分类:问答Django Piston issue - "oauth_user_auth() takes exactly 1 argument (2 given)"
I am having a few problems setting up Django Piston. I have managed to get as far as generating authentication via the oauth_client.py sample shown here (http://github.com/clemesha/django-piston-oauth[详细]
2023-01-09 03:46 分类:问答How do I access auth User's User.objects.create_user(...) in a south migration?
Instead of using django\'s auth module I\'ve used my own and already regret it a lot. In an effort to rectify the situation, I\'m trying to migrate the data from my User model to django.auth.models.U[详细]
2023-01-08 06:38 分类:问答in a brand-new django project, django auth tests fail
I make a brand-new django project and do literally nothing with it except give values to DATABASE_USER, DATABASE_ENGINE, DATABASE_NAME, and DATABASE_PASSWORD, and django auth test fail. How is this ev[详细]
2023-01-07 23:06 分类:问答Django - Start Session by Ajax Request
I need to know how to start a session by Ajax in Django. I\'m doing exactly as described bellow, but it is not working! The request is sent correctly, but don\'t start any session. If a request direct[详细]
2023-01-07 12:01 分类:问答Django: How can I apply the login_required decorator to my entire site (excluding static media)?
The example provides a snippet for an application level view, but what if I have lots of different (and some non-application) entries in my \"urls.py\" file, including templates? How can I apply this[详细]
2023-01-06 11:11 分类:问答How to avoid creating 'username' in django-auth
In my django project I need to add registration function. Problem is that in registration process I can\'t use a \'userprofile\' anywhere. My user is defined by \'first name\' , \'last name\' and some[详细]
2023-01-04 04:02 分类:问答Where does Django store auth's superuser / pw / e-mail data?
After running syncdb and creating a su, where does that get recorde开发者_开发问答d?Settings.py doesn\'t seem to change.It gets recorded as an instance of django.contrib.auth.models.User.[详细]
2022-12-31 10:42 分类:问答Manually logging in a user without password
I开发者_如何学JAVA hope you can help me figure the best way to implement a manual (server-side initiated) login without using the password. Let me explain the workflow:[详细]
2022-12-29 18:24 分类:问答Django design question: extending User to make users that can't log in
The site I\'m working on involves teachers creating student objects. The teacher can choose to make it possible for a student to log into the site (to check calendars, etc) OR the teacher can choose t[详细]
2022-12-28 16:15 分类:问答