小编Ant*_*esm的帖子

没有名为constants的模块

我想用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)

python django tastypie

6
推荐指数
1
解决办法
8154
查看次数

Android Google AnalyticsSDK显示"SPAN_EXCLUSIVE_EXCLUSIVE跨度不能为零长度"

我在我的项目中添加了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跨度不能为零长度",分析不起作用.

android google-analytics

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

django ×1

google-analytics ×1

python ×1

tastypie ×1