Skip to content
Snippets Groups Projects
Unverified Commit afb4fde6 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Clean up SCSS on startup.

parent 9921db89
No related branches found
No related tags found
No related merge requests found
default_app_config = 'biscuit.core.apps.CoreConfig'
from glob import glob
import os
from django.apps import AppConfig
from django.conf import settings
from django.utils.translation import gettext_lazy as _
class CoreConfig(AppConfig):
name = 'biscuit.core'
verbose_name = _('BiscuIT - The Free School Information System')
def clean_scss(self):
for source_map in glob(os.path.join(settings.STATIC_ROOT, '*.css.map')):
try:
os.unlink(source_map)
except OSError:
# Ignore because old is better than nothing
pass # noqa
def ready(self):
self.clean_scss()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment