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.2.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.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for django_wecom-1.2.tar.gz
Algorithm Hash digest
SHA256 ec8328cfea45cd094dc0e9e6d50a79064a34dd27c3757ffbff4cd37067e7e10b
MD5 6a91dbd29cb4672b93117faea9a41e1f
BLAKE2b-256 469e931a8a7575e0f68925547072f972a4c7a22df383352fe15233d5ca00b852

See more details on using hashes here.

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

Hashes for django_wecom-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 023217c3ab536c6f79d8c7ab06bc92e6b8da25f21189496c1a7c9897f01258fd
MD5 74a2de35efe07887c62446170aebc2c8
BLAKE2b-256 9eeb4b33e9696ede907dfb624aac9453354fe859ba90ad2ca9bacba99a7dddcf

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