Top "Django-authentication" questions

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

Extending the User model with custom fields in Django

What's the best way to extend the User model (bundled with Django's authentication app) with custom fields? I would also …

django django-models django-authentication django-users
How to get the currently logged in user's user id in Django?

How to get the currently logged-in user's id? in models.py: class Game(models.model): name = models.CharField(max_length=255) …

django django-models django-authentication
Having Django serve downloadable files

I want users on the site to be able to download files whose paths are obscured so they cannot be …

python django django-authentication
In Django, how do I check if a user is in a certain group?

I created a custom group in Django's admin site. In my code, I want to check if a user is …

python django django-authentication
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 …

django django-views django-authentication django-class-based-views class-based-views
Get user information in django templates

What's the best way to get user information from a django template? For example, if I just want to: If …

django django-authentication django-registration
Check permission inside a template in Django

Can I use the Auth application's permission checking inside a template in Django? (I want to display a simple form …

django django-authentication
AttributeError: 'Manager' object has no attribute 'get_by_natural_key' error in Django?

I am using Django '1.5c1'. I have this line in my settings.py: AUTH_USER_MODEL = 'fileupload.galaxyuser' …

python django django-authentication django-1.5 django-managers
Using Django auth UserAdmin for a custom user model

From the Django.Contrib.Auth docs: Extending Django’s default User If you’re entirely happy with Django’s User …

django django-models django-admin django-authentication django-custom-user
Django: Populate user ID when saving a model

I have a model with a created_by field that is linked to the standard Django User model. I need …

django django-models django-authentication