Add a Stylus stylesheet for the layout, which is automatically compiled by Django Compressor
This commit is contained in:
parent
58d446f711
commit
fe75a57550
10 changed files with 258 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue