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.2.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.2.tar.gz.
File metadata
- Download URL: django_wecom-1.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8328cfea45cd094dc0e9e6d50a79064a34dd27c3757ffbff4cd37067e7e10b
|
|
| MD5 |
6a91dbd29cb4672b93117faea9a41e1f
|
|
| BLAKE2b-256 |
469e931a8a7575e0f68925547072f972a4c7a22df383352fe15233d5ca00b852
|
File details
Details for the file django_wecom-1.2-py3-none-any.whl.
File metadata
- Download URL: django_wecom-1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
023217c3ab536c6f79d8c7ab06bc92e6b8da25f21189496c1a7c9897f01258fd
|
|
| MD5 |
74a2de35efe07887c62446170aebc2c8
|
|
| BLAKE2b-256 |
9eeb4b33e9696ede907dfb624aac9453354fe859ba90ad2ca9bacba99a7dddcf
|