Moving the static files config to the specific app
This commit is contained in:
parent
220333fdbe
commit
4bb0e083ae
3 changed files with 6 additions and 6 deletions
|
@ -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']
|
||||
|
|
|
@ -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
5
static_extra/apps.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.contrib.staticfiles.apps import StaticFilesConfig
|
||||
|
||||
|
||||
class KhaganatStaticFilesConfig(StaticFilesConfig):
|
||||
ignore_patterns = ['CVS', '.*', '*~', 'sass']
|
Loading…
Reference in a new issue