From 220333fdbeaab9358a0029195e789760f9259fd7 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 11 Jun 2018 12:42:00 +0200 Subject: [PATCH] Remove sass directory from static files --- khaganat/apps.py | 10 ++++++++++ khaganat/settings.py | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 khaganat/apps.py diff --git a/khaganat/apps.py b/khaganat/apps.py new file mode 100644 index 0000000..f055346 --- /dev/null +++ b/khaganat/apps.py @@ -0,0 +1,10 @@ +from django.contrib.staticfiles.apps import StaticFilesConfig +from django.apps import AppConfig + + +class KhaganatConfig(AppConfig): + name = 'khaganat' + + +class KhaganatStaticFilesConfig(StaticFilesConfig): + ignore_patterns = ['CVS', '.*', '*~', 'sass'] diff --git a/khaganat/settings.py b/khaganat/settings.py index e6e6e3d..af00d6e 100644 --- a/khaganat/settings.py +++ b/khaganat/settings.py @@ -40,8 +40,8 @@ INSTALLED_APPS = [ 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', - 'django.contrib.staticfiles', - 'khaganat', + 'khaganat.apps.KhaganatConfig', + 'khaganat.apps.KhaganatStaticFilesConfig', 'neluser.apps.NeluserConfig', 'pages.apps.PagesConfig', 'navbar.apps.NavbarConfig',