Moving the static files config to the specific app

This commit is contained in:
Rodolphe Breard 2018-06-11 12:55:17 +02:00
parent 220333fdbe
commit 4bb0e083ae
3 changed files with 6 additions and 6 deletions

View file

@ -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']

View file

@ -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',

5
static_extra/apps.py Normal file
View file

@ -0,0 +1,5 @@
from django.contrib.staticfiles.apps import StaticFilesConfig
class KhaganatStaticFilesConfig(StaticFilesConfig):
ignore_patterns = ['CVS', '.*', '*~', 'sass']