|
@@ -15,6 +15,7 @@
|
|
|
## limitations under the License.
|
|
## limitations under the License.
|
|
|
<%!
|
|
<%!
|
|
|
from desktop.conf import DJANGO_DEBUG_MODE
|
|
from desktop.conf import DJANGO_DEBUG_MODE
|
|
|
|
|
+from django.conf import settings
|
|
|
DEBUG = DJANGO_DEBUG_MODE.get()
|
|
DEBUG = DJANGO_DEBUG_MODE.get()
|
|
|
%>
|
|
%>
|
|
|
|
|
|
|
@@ -28,6 +29,8 @@ DEBUG = DJANGO_DEBUG_MODE.get()
|
|
|
require.config({
|
|
require.config({
|
|
|
%if DEBUG:
|
|
%if DEBUG:
|
|
|
urlArgs: "bust=" + (new Date()).getTime(),
|
|
urlArgs: "bust=" + (new Date()).getTime(),
|
|
|
|
|
+ %else:
|
|
|
|
|
+ urlArgs: "version=${settings.HUE_DESKTOP_VERSION}",
|
|
|
%endif
|
|
%endif
|
|
|
baseUrl: "${ static('') }",
|
|
baseUrl: "${ static('') }",
|
|
|
paths: {
|
|
paths: {
|