A project with a mininum fields Django Custom User
Project description
django-min-custom-user
A project with a mininum fields Django Custom User
How to use
Install the lib
pip install django_min_custom_user
Create an app:
python manage.py custom_user_app
Add the app to INSTALLED_APPS on settings.py:
INSTALLED_APPS = [
...,
'custom_user_app',
]
Create your custom User:
from django_min_custom_user.models import MinAbstractUser
class User(MinAbstractUser):
pass
This user has all fields from regular Django users but username and last_name.
Set your customized User on DJango settings.py:
AUTH_USER_MODEL = 'custom_user_app.User'
Customize also your User Admin:
from django_min_custom_user.admin import MinUserAdmin
class UserAdmin(MinUserAdmin):
pass
Now run and apply migration:
python manage.py makemigrations
python manage.py migrate
Check django_project_ex for an example of Django project using above configurations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_min_custom_user-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185c74a38fe46749b3d713f2e67c6e334273e8c3957b531f24e74f7aa40d750a |
|
MD5 | 54aa056347a726dcd2c27adb24c83541 |
|
BLAKE2b-256 | 8114f7435767e4e97df3c9a58de7c953d561e34b0120f90395e28fb51265cdff |
Close
Hashes for django_min_custom_user-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32baf1c94d4f59e384346504570ae7922a4cd72ade862e44c254cafe794ee3b |
|
MD5 | b5329925b052413ef622fc0114f89ad9 |
|
BLAKE2b-256 | a0eb867ab846c9d9e481b99bf3c8f6b5b9831ee5d5b282e91ba191806fc94405 |