2014-11-13 22:23:16 +01:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class MediafileAppConfig(AppConfig):
|
2015-03-26 05:36:10 +01:00
|
|
|
name = 'openslides.mediafiles'
|
|
|
|
verbose_name = 'OpenSlides Mediafiles'
|
2014-11-13 22:23:16 +01:00
|
|
|
|
|
|
|
def ready(self):
|
2015-06-25 20:36:46 +02:00
|
|
|
# Load projector elements.
|
|
|
|
# Do this by just importing all from these files.
|
|
|
|
from . import projector # noqa
|
|
|
|
|
2014-11-13 22:23:16 +01:00
|
|
|
# Import all required stuff.
|
2015-01-24 16:35:50 +01:00
|
|
|
from openslides.utils.rest_api import router
|
|
|
|
from .views import MediafileViewSet
|
2014-11-13 22:23:16 +01:00
|
|
|
|
2015-01-24 16:35:50 +01:00
|
|
|
# Register viewsets.
|
2015-03-26 05:36:10 +01:00
|
|
|
router.register('mediafiles/mediafile', MediafileViewSet)
|