From 4bb0e083ae22479c17730754d0fa4c1957aca43c Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 11 Jun 2018 12:55:17 +0200 Subject: [PATCH] Moving the static files config to the specific app --- khaganat/apps.py | 5 ----- khaganat/settings.py | 2 +- static_extra/apps.py | 5 +++++ 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 static_extra/apps.py diff --git a/khaganat/apps.py b/khaganat/apps.py index f055346..532c1f2 100644 --- a/khaganat/apps.py +++ b/khaganat/apps.py @@ -1,10 +1,5 @@ -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 af00d6e..dc04293 100644 --- a/khaganat/settings.py +++ b/khaganat/settings.py @@ -41,10 +41,10 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'khaganat.apps.KhaganatConfig', - 'khaganat.apps.KhaganatStaticFilesConfig', 'neluser.apps.NeluserConfig', 'pages.apps.PagesConfig', 'navbar.apps.NavbarConfig', + 'static_extra.apps.KhaganatStaticFilesConfig', 'logs.apps.LogsConfig', 'nsfw.apps.NsfwConfig', 'npb.apps.NpbConfig', diff --git a/static_extra/apps.py b/static_extra/apps.py new file mode 100644 index 0000000..7aa6b69 --- /dev/null +++ b/static_extra/apps.py @@ -0,0 +1,5 @@ +from django.contrib.staticfiles.apps import StaticFilesConfig + + +class KhaganatStaticFilesConfig(StaticFilesConfig): + ignore_patterns = ['CVS', '.*', '*~', 'sass']