Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Library provides customization of AnonymousUser in Django

Project Description
# django-custom-anonymous

Library provides customization of AnonymousUser.

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

## 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__()
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-custom-anonymous-0.2.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source May 12, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting