Ignore /src directories

This commit is contained in:
Ludovic Stephan 2019-10-16 20:51:10 +02:00
parent 337453c6c6
commit 898abd15c6
2 changed files with 6 additions and 2 deletions

5
cof/apps.py Normal file
View file

@ -0,0 +1,5 @@
from django.contrib.staticfiles.apps import StaticFilesConfig
class IgnoreSrcStaticFilesConfig(StaticFilesConfig):
ignore_patterns = StaticFilesConfig.ignore_patterns + ["src/**"]

View file

@ -64,8 +64,7 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.messages",
"django.contrib.staticfiles",
# Must be before django admin
"cof.apps.IgnoreSrcStaticFilesConfig", # Must be before django admin
# https://github.com/infoportugal/wagtail-modeltranslation/issues/193
"wagtail_modeltranslation",
"wagtail_modeltranslation.makemigrations",