示例#1
0
    def get(self, request, format=None):
        """Return some basic information about this instance

        Everything returned here should be considered public / insecure, as
        this requires no auth and is intended for use by the installer process.
        """
        response = {
            'version': get_cyborgbackup_version(),
        }

        response['ping'] = "pong"
        return Response(response)
示例#2
0
    def get(self, request, format=None):
        '''Return various sitewide configuration settings'''

        data = dict(
            time_zone=dsettings.TIME_ZONE,
            debug=dsettings.DEBUG,
            sql_debug=dsettings.SQL_DEBUG,
            allowed_hosts=dsettings.ALLOWED_HOSTS,
            # beat_schedule=dsettings.CELERY_BEAT_SCHEDULE,
            version=get_cyborgbackup_version(),
        )

        return Response(data)