2014-11-13 22:23:16 +01:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class ConfigAppConfig(AppConfig):
|
|
|
|
name = 'openslides.config'
|
|
|
|
verbose_name = 'OpenSlides Config'
|
|
|
|
|
|
|
|
def ready(self):
|
2015-01-24 16:35:50 +01:00
|
|
|
# Import all required stuff.
|
|
|
|
from openslides.utils.rest_api import router
|
|
|
|
from .views import ConfigViewSet
|
|
|
|
|
|
|
|
# Register viewsets.
|
|
|
|
router.register('config/config', ConfigViewSet, 'config')
|