Wecom Auth for Django
Project description
Django Wecom
Install
pip install django_wecom
Usage
- Register App in
setting.py - Write a url in
urls.py,path('auth/', include('django_wecom.urls')) - Set the user data table in
setting.py,AUTH_USER_MODEL = "django_wecom.User" - Migrate the database,
python manage.py migrate django_wecom - If your template need
is_in_wecomtag, you can write this insettings.pyTEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django_wecom.context_processors.get_var', ... ], }, }, ]
- If you want add some new fields in User or Group table, you can inherit the
django_wecom.models.Userordjango_wecom.models.Group, but remember changeAUTH_USER_MODEL = "your_app.User"insettings.py
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
django_wecom-1.3.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_wecom-1.3.tar.gz.
File metadata
- Download URL: django_wecom-1.3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
894d391a154a7212bb254bf7ca2d81c534af3abf8040e01ec1665b26a256889c
|
|
| MD5 |
9533522ad496ed617f867db0fdb94eec
|
|
| BLAKE2b-256 |
2ee7cb5a12be11ab4ab14df469b4026490f3dd2f204ef52c8c79c5c5901a229b
|
File details
Details for the file django_wecom-1.3-py3-none-any.whl.
File metadata
- Download URL: django_wecom-1.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5be40d25b66435963c01b01c3f1b4807a6ea541af697186017641617b9cbf8b8
|
|
| MD5 |
6b48c14fbc34c244cd1d98cc140fe415
|
|
| BLAKE2b-256 |
5da994fb4c17ed5e48f529b53c2a09c9272f3e8137fc74bd6165c0ed4bdb7990
|