Skip to main content

A simple Django app to conduct Web-based.

Project description

===
django-wechat-web
===

django-wechat-web is a simple Django app to conduct Wechat-web-based helper. For each
question, visitors can choose between a fixed number of answers.

Detailed documentation is in the 'docs' directory.

Quick start
-----------

1. Add 'django_wechat_web' to to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'django_wechat_web',
]

2. Add WECHAT to your settings file::

WECHAT = {
'appid': 'YOUR APPID',
'appsecret': 'YOUR APP Secret',
'scope': 'snsapi_base',
}

3. Run `python manage.py makemigrations django_wechat_web; python manage.py migrate` to create the django_wechat_web models.

4. In your app view where your need get wechat user openid, do like this::

from django_wechat_web import WechatView

class YourViewName(WechatView):
'''
Extends WechatView and over get method
Here WechatView extends django.views.generic.View
'''
...

def get(self, request, *args, **kwargs):
# your code ....

....

5. Now you can do anything the same as `django.views.generic.View`.

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-wechat-web-0.0.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file django-wechat-web-0.0.3.tar.gz.

File metadata

File hashes

Hashes for django-wechat-web-0.0.3.tar.gz
Algorithm Hash digest
SHA256 78ddaf681f76001e4308fb8d5045a25bdaee125bd06ea9a119ce9faeb081863b
MD5 5bdbf4dfd6920dc5b5538d1ffd69de88
BLAKE2b-256 08b74ca14544f957c33340511aa53fe0d1a63b3f5a1cdf1a8286cd95f44629d2

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