Skip to main content

A Django app to integration social accounts

Project description

Django Social APP


包含微信APP, 微信小程序, 微信公众号, 抖音小程序, QQ开放平台等

Quick start

  1. 更新
  1. 执行python migrate



from social.views.AuthView

方式一, 直接使用 修改

from social.views import AuthView

urlpatterns = [
    path('social/<slug:provider>/', AuthView.as_view()),

方式二, 继承 修改

from social.views import AuthView as BaseAuthView

class AuthView(BaseAuthView):
    success_url = '/success/'


API使用django-rest-framework框架, Token使用django-rest-framework-simplejwt


$ pip install djangorestfamework
$ pip install django-rest-famework-simplejwt


from social.apis import AuthView, SocialUpdateView

urlpatterns = [
    path('social/auth/<slug:provider>/', AuthView.as_view()),
    path('social/update/', SocialUpdateView.as_view()),

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-social-cn, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-social-cn-0.1.1.tar.gz (9.2 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