diff --git a/app/e11mail/settings.py b/app/e11mail/settings.py index a7f72b3..9165874 100644 --- a/app/e11mail/settings.py +++ b/app/e11mail/settings.py @@ -12,7 +12,6 @@ SECRET_KEY = 'django-insecure-$e2!=equ(efm0e%f9&t+xjtz0)$*$@pw%rnjdqcl8f@5o5hw!l # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -#ALLOWED_HOSTS = ["100.89.176.6"] ALLOWED_HOSTS = [] # Application definition @@ -99,7 +98,9 @@ STATICFILES_FINDERS = [ STATIC_ROOT = '/tmp/e11mail-static' COMPRESS_PRECOMPILERS = ( - ('text/x-scss', 'django_libsass.SassCompiler'), + # TODO: --style=compressed + source maps + # https://github.com/django-compressor/django-compressor/issues/438 + ('text/x-scss', 'sass {infile} {outfile}'), ) DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/app/signup/static/signup/style.scss b/app/signup/static/signup/style.scss index e2b9ecf..ceffc62 100644 --- a/app/signup/static/signup/style.scss +++ b/app/signup/static/signup/style.scss @@ -1,3 +1,5 @@ +@use 'pure'; +@use 'grids-responsive'; /* The line above should remain empty */ /************************/ diff --git a/app/signup/templates/signup/index.html b/app/signup/templates/signup/index.html index 6ab9313..5bb4c77 100644 --- a/app/signup/templates/signup/index.html +++ b/app/signup/templates/signup/index.html @@ -6,8 +6,6 @@ {% block "title" %}e11mail.com{% endblock %} {% compress css %} - - {% endcompress %} diff --git a/flake.nix b/flake.nix index a746010..f738478 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,8 @@ pkgs = import nixpkgs {inherit system;}; devDeps = with pkgs; [ python3Packages.django_4 - python3Packages.django-libsass + python3Packages.django-compressor + dart-sass hugo brotli