Commits

Dmitri Lebedev  committed e9ec8ae

werkzeug on in settings.py

  • Participants
  • Parent commits cf7b88d

Comments (0)

Files changed (1)

File project/settings.py

 ADMIN_MEDIA_PREFIX = '/s/admin/'
 
 # Additional locations of static files
-STATICFILES_DIRS = tuple((i, os.path.join(STATIC_ROOT, i)) for i in 'css img js'.split())
+STATIC_DIR_NAMES = 'css img js'  # FASTDEV: edit this setting only
+STATICFILES_DIRS = tuple((i, os.path.join(STATIC_ROOT, i)) for i in STATIC_DIR_NAMES.split())
 
 # List of finder classes that know how to find static files in
 # various locations.
 #	'reversion',  # uncomment to use object versioning
 #	'tastypie',  # uncomment to use RESTful APIs
 	'compressor',  # for sass and js compressor
-#	'social_auth',
+	'werkzeug',
 
 	# Uncomment the next line to enable the admin:
 	'django.contrib.admin',
 
 COMPRESS = True
 COMPRESS_PRECOMPILERS = (
-	('text/sass', './bin/sass {infile} {outfile}'),
+	('text/sass', '%s {infile} {outfile}' % os.path.join(PROJECT_ROOT, '..', 'bin', 'sass')),
 )
 
 USE_COFFEE_SCRIPT = False
 if USE_COFFEE_SCRIPT:
 	COMPRESS_PRECOMPILERS += (
-		('text/coffeescript', './bin/coffee -s -p < {infile} > {outfile}'),
+		('text/coffeescript', '%s -s -p < {infile} > {outfile}' % os.path.join(PROJECT_ROOT, '..', 'bin', 'coffee')),
 	)
 
 # turn this on to enable YUI compressor
 COMPRESS_ENABLED = False
 COMPRESS_JS_FILTERS = ['compressor.filters.yui.YUIJSFilter']
 COMPRESS_CSS_FILTERS = ['compressor.filters.yui.YUICSSFilter']
-COMPRESS_YUI_BINARY = 'bin/yuicompressor'
+COMPRESS_YUI_BINARY = os.path.join(PROJECT_ROOT, '..', 'parts', 'yuic', 'yuicompressor-2.4.7.jar')