我正在按照本教程添加allauth到我的项目中: http://django-allauth.readthedocs.org/en/latest/installation.html
尝试进行迁移时出现以下错误: “ImportError:没有名为rest_authusers的模块”
我的settings.py如下:
Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {com.myApp.GeneralActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3565)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3584)
at android.app.ActivityThread.access$1300(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.NullPointerException
Caused by java.lang.NullPointerException
com.myApp.setAdapter (HackersProtected:32)
com.myApp.MyPage.onFragmentCreated (HackersProtected:165)
com.myApp.BaseFragment.onViewCreated (HackersProtected:105)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:925)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:1088)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:1070)
android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated (HackersProtected:1861)
android.support.v4.app.Fragment.performActivityCreated (HackersProtected:1474)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:931)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:1088)
android.support.v4.app.FragmentManagerImpl.moveToState (HackersProtected:1070)
android.support.v4.app.FragmentManagerImpl.dispatchReallyStop (HackersProtected:1888)
android.support.v4.app.FragmentActivity.onReallyStop (HackersProtected:787)
android.support.v4.app.FragmentActivity.doReallyStop (HackersProtected:764)
android.support.v4.app.FragmentActivity.onDestroy (HackersProtected:322)
com.myApp.BaseActivity.onDestroy (HackersProtected:122)
android.app.Activity.performDestroy (Activity.java:434)
dalvik.system.NativeStart.main (NativeStart.java)
我还不确定如何解决这个问题,因为我的项目文件中没有authusers的引用。
答案 0 :(得分:3)
您只是忘了在'rest_auth'
;)