3

How to make work in django index.html with following line?

<link href="{{ elixir('css/app.css')}}" rel="stylesheet" type="text/css">

Also I can't find much on how to use sass in Django.

I have index.html and SASS files from laravel, can I make it work in Django?

Cheers.

Arash Hatami
  • 5,297
  • 5
  • 39
  • 59
  • This may help [link](https://stackoverflow.com/questions/22042664/integrate-sass-scss-with-django) – Bijoy Jun 16 '18 at 10:20

2 Answers2

5

I would suggest to use django-webpack-loader & configure webpack. This might help https://github.com/khadegd/django-webpack-starter.

Notice: I'm the owner of django-webpack-loader

Advena
  • 1,664
  • 2
  • 24
  • 45
Ganesh
  • 3,128
  • 2
  • 17
  • 27
4

Work with sass or less is not like Laravel. You can use many libraries to do that

  1. django-sass-processor
  2. django-libsass
Arash Hatami
  • 5,297
  • 5
  • 39
  • 59