我们考虑是否应该在不久的将来将一个相当大的python Web应用程序转换为Python 3.
所有经验,可能的挑战或指导都受到高度赞赏.
如何测试是否仍在芹菜中处理任务(task_id)?我有以下场景:
有任何想法吗?可以查找芹菜正在处理的所有任务并检查我的是否仍然存在?
如果我尝试使用图形API(使用Python和JavaScript SDK测试)发布到用户墙(feed),我发现了一个非常奇怪的行为:
如果我包含一个有效的Facebook内部链接,包括GET参数(即链接到应用程序),API将失败并显示HTTP状态500.如果我使用任何其他外部链接(使用GET参数)或无效的Facebook链接或没有GET的Facebook链接每个人的工作都很好.
您可以在Graph API Explorer中尝试:
POST:https://graph.facebook.com/me/feed
非工作领域:
工作字段(sk参数无效):
有任何想法吗?或建议如何发布Facebook应用程序的链接(即http://www.facebook.com/pages/Lorem-Ipsum/159165434150059?sk=app_227540913924543)
有没有办法将font-size/line-height存储在Sass变量中,如下所示:
$font-normal: 14px/21px;
Run Code Online (Sandbox Code Playgroud)
使用此声明,我得到了文档中描述的部门.有没有办法避免分裂?
注意:我使用scss语法.
我试图使用jquery函数将a 的内容加载<div>到<div>同一页面上的另一个内容.但是当函数触发时,它会将整个<HTML>文档加载到指定的文档中<div>.知道为什么会这样做吗?我的代码如下:
jQuery的:
function button1() {
$('#sidebar-content').fadeOut(function() {
$(this).load('#button1').fadeIn();
});
}
function button2() {
$('#sidebar-content').fadeOut(function() {
$(this).load('#button2').fadeIn();
});
}
Run Code Online (Sandbox Code Playgroud)
HTML:
<div id="content-holder">
<div id="main-content" class="float-holder">
<div id="inner">
<h1>BRAND TRUTH</h1>
<div id="flashcontent">
<div id="button1">
<div id="content">
<h1>Brand Truth</h1>
<p>What this basically means is our way of working, the process involved by both ourselves and our client.</p>
<p>When the truth wheel process is followed, the end result is so much stronger.</p>
</div>
</div>
<div …Run Code Online (Sandbox Code Playgroud) javascript ×2
python ×2
celery ×1
celery-task ×1
css ×1
django ×1
facebook ×1
jquery ×1
python-3.x ×1
sass ×1