Ignore src/ directories

This commit is contained in:
Ludovic Stephan 2019-02-19 18:12:41 +01:00
parent 8ea0cb84d1
commit 8a6a3d0994
2 changed files with 6 additions and 1 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 = ["CVS", ".*", "*~", "src"]

View file

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