我想用Tastypie框架做示例应用程序.
我将Tastypie添加到已安装的应用程序并urls.py根据需要进行了修改,添加from tastypie.api import Api.但是当我打开时http://localhost:8000/api/v1/?format=json,我得到以下异常:
异常值:没有名为常量的模块
当我跑:
pip install constants
Run Code Online (Sandbox Code Playgroud)
一切看起来都不错
Python 2.6 (and try on 2.7)
Django 1.4
Tastypie 0.10.0
Run Code Online (Sandbox Code Playgroud) 我在我的项目中添加了SDK并调用了这个方法:
@Override
public void onStart() {
super.onStart();
EasyTracker.getInstance().activityStart(this);
}
@Override
public void onStop() {
super.onStop();
EasyTracker.getInstance().activityStop(this);
}
Run Code Online (Sandbox Code Playgroud)
在LogCat中,我看到错误:"SPAN_EXCLUSIVE_EXCLUSIVE跨度不能为零长度",分析不起作用.