小编Yon*_*Yon的帖子

Django模板和变量属性

我正在使用Google App Engine和Django模板.
我有一个表,我想显示对象看起来像:

Object Result:
    Items = [item1,item2]
    Users = [{name='username',item1=3,item2=4},..]
Run Code Online (Sandbox Code Playgroud)

Django模板是:

<table>
<tr align="center">
    <th>user</th>
    {% for item in result.items %}
        <th>{{item}}</th>
    {% endfor %}
</tr>

{% for user in result.users %}
    <tr align="center"> 
        <td>{{user.name}}</td>
        {% for item in result.items %}
            <td>{{ user.item }}</td>
        {% endfor %}
    </tr>
{% endfor %}
</table>
Run Code Online (Sandbox Code Playgroud)

现在,Django文档指出,当它看到一个.在变量中
它尝试了几个东西来获取数据,其中一个是字典查找,这正是我想要但似乎没有发生......

python django google-app-engine

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

在python中使用Web服务的最佳方法是什么?

我有一个中等大小的应用程序,作为.net Web服务运行,我无法控制,我想在它上面创建一个松散的pythonic API,以便轻松编写脚本.

我想知道在python中使用web服务的最佳/最实用的解决方案是什么.

编辑:我需要使用复杂的肥皂WS,我无法控制它.

python soap web-services

8
推荐指数
1
解决办法
1059
查看次数

标签 统计

python ×2

django ×1

google-app-engine ×1

soap ×1

web-services ×1