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.

Files for django-miniprogram-api, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_miniprogram_api-0.0.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page