Skip to main content

A simple Django app implemented the WeChat miniprogram's login, payment and other APIs

Project description

Django MiniProgram Auth

Quick start

  1. Add “miniprogram_auth” and django-rest-framework to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'miniprogram_api',
        'rest_framework.authtoken',
        'rest_framework',
    ]
    
    REST_FRAMEWORK = {
        'DEFAULT_PERMISSION_CLASSES': [
            ...
            'rest_framework.authentication.BasicAuthentication', # add this
            'rest_framework.authentication.SessionAuthentication', # add this
            'rest_framework.authentication.TokenAuthentication', # add this
        ]
    }
  2. Include the miniprogram_auth URLconf in your project urls.py like this:

    url(r'^miniprogram_auth/', include('miniprogram_auth.urls')),
  3. Run python manage.py migrate to create the polls models.

  4. Start the development server and visit http://127.0.0.1:8000/.

  5. Visit http://127.0.0.1:8000/ to .

Usage

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_miniprogram_api-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file django_miniprogram_api-0.0.1.tar.gz.

File metadata

  • Download URL: django_miniprogram_api-0.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for django_miniprogram_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3bd58b4a831af0c8d5e3a034fa18c6446d78c71ba4fbe909b5dcc001faff3854
MD5 8eb20d78e266536fa581ac95775d2661
BLAKE2b-256 2f057e76b910087566cbe7531c4ba1cda8a5cbcdf6e265ae6fc64502f7678064

See more details on using hashes here.

Provenance

Supported by

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