Skip to main content

fixed admin avatar error

Project description

基于django-wechat-base的微信会员模块

快速开始:

安装django-wechat-member:

pip install django-wechat-member

修改 settings.py 文件:

INSTALLED_APPS = (
    ...
    'wechat',
    'wechat_member',
)

修改 urls.py 文件:

url(r'^wx_member/', include('wechat_member.urls', namespace='wx_member')),

更新数据库:

./manage.py makemigrations wechat_member
./manage.py migrate

使用 WxMemberViewself.wx_member :

from wechat_member.views import WxMemberView

class TestView(WxMemberView):
    def get_context_data(self, **kwargs):
        member = self.wx_member
        ...

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-wechat-member, version 0.3.5
Filename, size File type Python version Upload date Hashes
Filename, size django_wechat_member-0.3.5-py3-none-any.whl (8.1 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size django-wechat-member-0.3.5.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page