您好我试图从数据库中获取社交令牌,但我收到此错误.我找不到任何答案,并尝试了我能想到的一切.
如果有人知道如何解决这个问题.
NameError at /
name 'user' is not defined
Request Method: GET
Request URL: http://localhost:3000/
Django Version: 1.8.2
Exception Type: NameError
Exception Value:
name 'user' is not defined
Exception Location: /home/dk/user-new/just/fb/views.py in home, line 14
Python Executable: /home/dk/user-new/bin/python
Python Version: 3.4.0
Python Path:
['/home/dk/user-new/just',
'/home/dk/user-new/lib/python3.4',
'/home/dk/user-new/lib/python3.4/plat-x86_64-linux-gnu',
'/home/dk/user-new/lib/python3.4/lib-dynload',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/home/dk/user-new/lib/python3.4/site-packages']
Server time: Wed, 17 Jun 2015 10:09:50 +0000
from django.shortcuts import render
import requests
from allauth.socialaccount import providers
from allauth.socialaccount.models import SocialLogin, SocialToken, SocialApp
from allauth.socialaccount.providers.facebook.views import fb_complete_login
from …Run Code Online (Sandbox Code Playgroud)