Skip to main content

django-auth-hack

This is a Django application for hacking the builtin django.contrib.auth application. This app aims to add support to a longer username field on User model.

Installation and configuration

To install this app you need first to add it to your environment using pip:

$ [sudo] pip install django-auth-hack

Then you need to add the auth_hacks on top of your INSTALLED_APPS, before any other application:

INSTALLED_APPS = (
    'auth_hacks',
    # other apps
)

You can customize the new username max length by defining the USERNAME_MAX_LENGTH in your settings file:

USERNAME_MAX_LENGTH = 255

Database

Make sure you alter the column username in the table auth_user. You can use South or run an ALTER TABLE SQL manually. Using MySQL, you could run:

ALTER TABLE auth_user MODIFY COLUMN auth_user VARCHAR(255) NOT NULL;

Metadata

Release files for django-auth-hack 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-auth-hack 0.1.1
File Size Uploaded
django-auth-hack-0.1.1.tar.gz 2.2 kB Details

Release files / django-auth-hack-0.1.1.tar.gz

Download URL django-auth-hack-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bba97d47cceef1a5883e8eb898e1a821c5da644239c889bce5aa2304090d6134
BLAKE2b-256 checksum
How to use checksums
dd6f49fc500d54d3ea0ab9d1812fda61ceccda64246216473873155a2a4b0816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page