from django.conf.urls import url

from . import views


urlpatterns = [
    # qq登陆视图
    url(r'^qq/authorization/$', views.QQOAuth.as_view()),

    #   qq登陆成功后的会调处理
    url(r'^oauth_callback/$', views.QQOAuthView.as_view()),

    # 微博登陆视图
    url(r'^weibo/authorization/$', views.WEIBO.as_view()), #requests 版
    # url(r'^weibo/authorization/$', views.SINAOAuth.as_view()),
    # 数据库曹锁
    url(r'^sina_callback/$', views.WEIBOView.as_view()),#requests 版
    # url(r'^sina_callback/$', views.SINAOAuthView.as_view()),
     ]
