Browse files

profileFile was deprecated for Dojo 1.7.0 (using profile instead)

  • Loading branch information...
1 parent 40b65c0 commit 883d0abb97eb3e5a76111cce9fb87f47883f33c5 Tobias von Klipstein committed Dec 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 dojango/conf/settings.py
View
4 dojango/conf/settings.py
@@ -73,10 +73,10 @@
# this tupel will be appended to the default folders/files that are skipped: see SKIP_FILES in management/commands/dojobuild.py
DOJO_BUILD_PROFILES = {
'dojango': {
- 'options': 'profileFile="%(BASE_MEDIA_ROOT)s/dojango.profile.js" action=release optimize=shrinksafe.keepLines cssOptimize=comments.keepLines',
+ 'options': (DOJO_VERSION > '1.6' and 'profile' or 'profileFile') + '="%(BASE_MEDIA_ROOT)s/dojango.profile.js" action=release optimize=shrinksafe.keepLines cssOptimize=comments.keepLines',
},
'dojango_optimized': {
- 'options': 'profileFile="%(BASE_MEDIA_ROOT)s/dojango_optimized.profile.js" action=release optimize=shrinksafe.keepLines cssOptimize=comments.keepLines',
+ 'options': (DOJO_VERSION > '1.6' and 'profile' or 'profileFile') + '="%(BASE_MEDIA_ROOT)s/dojango_optimized.profile.js" action=release optimize=shrinksafe.keepLines cssOptimize=comments.keepLines',
'build_version': '%(DOJO_BUILD_VERSION)s-dojango-optimized-with-dojo',
},
}

0 comments on commit 883d0ab

Please sign in to comment.