|
@@ -13,6 +13,11 @@
|
|
|
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
## See the License for the specific language governing permissions and
|
|
## See the License for the specific language governing permissions and
|
|
|
## limitations under the License.
|
|
## limitations under the License.
|
|
|
|
|
+<%!
|
|
|
|
|
+from desktop.conf import DJANGO_DEBUG_MODE
|
|
|
|
|
+DEBUG = DJANGO_DEBUG_MODE.get()
|
|
|
|
|
+%>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<%def name="config()">
|
|
<%def name="config()">
|
|
|
<script src="${ static('desktop/ext/js/require.js') }"></script>
|
|
<script src="${ static('desktop/ext/js/require.js') }"></script>
|
|
@@ -21,6 +26,9 @@
|
|
|
return jQuery;
|
|
return jQuery;
|
|
|
});
|
|
});
|
|
|
require.config({
|
|
require.config({
|
|
|
|
|
+ %if DEBUG:
|
|
|
|
|
+ urlArgs: "bust=" + (new Date()).getTime(),
|
|
|
|
|
+ %endif
|
|
|
baseUrl: "${ static('') }",
|
|
baseUrl: "${ static('') }",
|
|
|
paths: {
|
|
paths: {
|
|
|
"jquery.ui.sortable": "desktop/ext/js/jquery/plugins/jquery-ui-1.10.4.draggable-droppable-sortable.min",
|
|
"jquery.ui.sortable": "desktop/ext/js/jquery/plugins/jquery-ui-1.10.4.draggable-droppable-sortable.min",
|