fbf7d0e43d
* django templates * widgets * views * mppt * main_menu * projector 1.x api Sorted all imports Add a ending slash to each url with a redirect view
15 lines
403 B
Python
15 lines
403 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class MediafileAppConfig(AppConfig):
|
|
name = 'openslides.mediafiles'
|
|
verbose_name = 'OpenSlides Mediafiles'
|
|
|
|
def ready(self):
|
|
# Import all required stuff.
|
|
from openslides.utils.rest_api import router
|
|
from .views import MediafileViewSet
|
|
|
|
# Register viewsets.
|
|
router.register('mediafiles/mediafile', MediafileViewSet)
|