Top "Django-authentication" questions

django-authentication refers to the built-in auth module for authentication & authorization that can be extended.

NoReverseMatch Error

I keep getting this error for the django login system. Here is part of my urls.py: (r'^contractManagement/login', …

django django-authentication
Django's self.client.login(...) does not work in unit tests

I have created users for my unit tests in two ways: 1) Create a fixture for "auth.user" that looks roughly …

django unit-testing django-authentication django-testing
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 …

django authentication django-models django-authentication
django - set user permissions when user is automatically created using get_or_create

Django 1.5, python 2.6 The model automatically creates a user under certain conditions: User.objects.get_or_create(username=new_user_name, …

python django django-admin django-authentication
How to force a user logout in Django?

In my Django app under certain conditions I want to be able to force users to log out by a …

django django-authentication
Django - CSRF token missing or incorrect

I just updated my django to 1.4. But I am getting the following error when I try to submit my login …

django django-authentication django-csrf
How to use TokenAuthentication for API in django-rest-framework

I have a django project, using django-rest-framework to create api. Want to use token base authentication system so api call …

python django django-authentication django-rest-framework
How to get user permissions?

I want to retrieve all permission for user as list of premission id's but: user.get_all_permissions() give me …

python django django-authentication
Manually logging in a user without password

I hope you can help me figure the best way to implement a manual (server-side initiated) login without using the …

django login django-authentication email-confirmation
How to deploy an HTTPS-only site, with Django/nginx?

My original question was how to enable HTTPS for a Django login page, and the only response, recommended that I …

django https nginx django-authentication