Add a Stylus stylesheet for the layout, which is automatically compiled by Django Compressor

This commit is contained in:
Danielle McLean 2017-10-23 10:29:12 +11:00
parent 58d446f711
commit fe75a57550
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
10 changed files with 258 additions and 5 deletions

View file

@ -38,6 +38,8 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'compressor',
'lemoncurry',
'home',
'users',
@ -124,6 +126,16 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
)
COMPRESS_PRECOMPILERS = (
('text/stylus', os.path.join(BASE_DIR, 'node_modules', '.bin', 'stylus') + ' {infile} -o {outfile}'),
)
# Settings specific to lemoncurry