Skip to main content

Wecom Auth for Django

Project description

Django Wecom

Install

pip install django_wecom

Usage

  1. Register App in setting.py
  2. Write a url in urls.py, path('auth/', include('django_wecom.urls'))
  3. Set the user data table in setting.py, AUTH_USER_MODEL = "django_wecom.User"
  4. Migrate the database, python manage.py migrate django_wecom
  5. If your template need is_in_wecom tag, you can write this in settings.py
    TEMPLATES = [
        {
            'BACKEND': 'django.template.backends.django.DjangoTemplates',
            'DIRS': [],
            'APP_DIRS': True,
            'OPTIONS': {
                'context_processors': [
                    'django_wecom.context_processors.get_var',
                    ...
                ],
            },
        },
    ]
    
  6. If you want add some new fields in User or Group table, you can inherit the django_wecom.models.User or django_wecom.models.Group, but remember change AUTH_USER_MODEL = "your_app.User" in settings.py

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_wecom-1.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for django_wecom-1.3.tar.gz
Algorithm Hash digest
SHA256 894d391a154a7212bb254bf7ca2d81c534af3abf8040e01ec1665b26a256889c
MD5 9533522ad496ed617f867db0fdb94eec
BLAKE2b-256 2ee7cb5a12be11ab4ab14df469b4026490f3dd2f204ef52c8c79c5c5901a229b

See more details on using hashes here.

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

Hashes for django_wecom-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5be40d25b66435963c01b01c3f1b4807a6ea541af697186017641617b9cbf8b8
MD5 6b48c14fbc34c244cd1d98cc140fe415
BLAKE2b-256 5da994fb4c17ed5e48f529b53c2a09c9272f3e8137fc74bd6165c0ed4bdb7990

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page