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.

Source Distribution

django-wechat-member-0.3.5.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

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