小编use*_*900的帖子

将Django项目从virtualenv推送到github

我在virtualenv上的一个小型Django项目上工作,该项目需要在github上共享,然后从那里克隆并安装在Apache服务器上。我以前从未将virtualenv与github结合使用。通常,我会在与manage.py文件相同的级别上设置本地git存储库。但是,在该级别上我确实不需要几个虚拟环境目录(bin,lib,include等)以及所需的应用程序和模板目录等。

那么,在这种情况下,创建github存储库的方法是什么。有没有一种方法可以选择并过滤出virtualenv的东西。

python git django virtualenv

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

jQuery .show()在这段代码中不起作用

这里console.log打印JSON对象.期望的是在浏览器中显示对象的内容.不会发生这种情况会entry.show();被忽略.

revealed = 0;  
$('.order-table tbody tr').each(function() {
       var entry = $(this);

       if ( entry.is(':hidden') && revealed < 10) {
          entry.show();
          console.log(entry);
          revealed++;
         }
 });
Run Code Online (Sandbox Code Playgroud)

相关的HTML:

<tbody>
   <tr>
   <td style="vertical-align: top">
     <div style="float:left;margin-left:5px;">
     <table class="order-table changeLogs" id="bigTable" style="width:472px;" >
 <thead>
   <tr>
     <th>Time</th>
     <th>User</th>
     <th>Field</th>
     <th>Original Value</th>
     <th>Changed To</th>
  </tr>
</thead>
Run Code Online (Sandbox Code Playgroud)

  [% FOREACH changeLog IN PO.changeLogs %]
  <tr id="change_order_entries">
    <td>[%date.format(changeLog.ts, '%m/%d/%y   %l:%M %p')%]</td>
    <td>[%changeLog.nameFirst%] [%changeLog.nameLast%]</td>
    <td>[%changeLog.field%]</td>
    <td>[%changeLog.oldValue%]</td>
    <td>[%changeLog.newValue%]</td>
  </tr>
   [% END %]
   </tbody>
  </table>
 </tr>
Run Code Online (Sandbox Code Playgroud)

jquery

0
推荐指数
1
解决办法
46
查看次数

标签 统计

django ×1

git ×1

jquery ×1

python ×1

virtualenv ×1