Refactor: split code into several django apps (we call them modules).

This commit is contained in:
2018-12-13 14:47:58 +01:00
parent c23dc33d4e
commit 0d5a8c65e3
81 changed files with 739 additions and 332 deletions

View File

@@ -0,0 +1,17 @@
from django.conf import settings
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'List enabled modular apps in django-dav installation.'
def add_arguments(self, parser):
pass
def handle(self, *args, **options):
paragraphs = []
config = settings.MODULE_CONFIG
for obj in config.modules.values():
paragraphs.append(str(obj))
output = '\n'.join(paragraphs)
self.stdout.write(output)