https://github.com/sesh/django-authuser
https://github.com/sesh/django-authuser
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sesh/django-authuser
- Owner: sesh
- License: isc
- Created: 2017-10-15T00:06:48.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T21:05:47.000Z (over 3 years ago)
- Last Synced: 2025-04-06T23:25:21.106Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-authuser
A reusable custom user model for Django projects.
Includes:
- The user model (email address to sign in, full-name only)
- Sign up form and view
- Logout view with redirect to the homepage
- Admin registration
### Usage
Add the `authuser` app as a git submodule:
```
git submodule add git@github.com:sesh/django-authuser.git authuser
```
Add the app to your `INSTALLED_APPS`, and configure your `AUTH_USER_MODEL` setting:
```
INSTALLED_APPS = [
...
"authuser",
]
AUTH_USER_MODEL = "authuser.User"
```
Add the following to your `settings.py` to allow signups:
```
AUTH_USER_ALLOW_SIGNUP = True
```
Update your `urls.py` in include the signup and logout urls:
```
urlpatterns = [
...,
path('accounts/', include('authuser.urls')),
]
```