Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Library provides customization of AnonymousUser in Django

Project description

# django-custom-anonymous

[![Build Status](](

Library provides customization of AnonymousUser.

Works with Python >= 2.6, >= 3.2, Django >= 1.5, >= 2.0.

## Installation

pip install django-custom-anonymous

## Customization

Add to `settings`:

AUTH_ANONYMOUS_MODEL = 'your_app.module.CustomAnonymousUser'

Add to middlewares:


Create your own anonymous (for example):

from django.contrib.auth.models import AnonymousUser as DjangoAnonymousUser
class CustomAnonymousUser(DjangoAnonymousUser):
ip = None

def __init__(self, request):
self.ip = request.META.get('REMOTE_ADDR')
super(AnonymousUser, self).__init__()

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-custom-anonymous-0.4.tar.gz (2.2 kB) Copy SHA256 hash SHA256 Source None Feb 26, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page