class SettingsResource(Resource):
    value = fields.CharField(attribute='value', help_text='setting value')


class Meta:
    resource_name = 'setting'
fields = ['value']
allowed_methods = ['get']

def detail_uri_kwargs(self, bundle_or_obj):
    kwargs = {}
return kwargs

def get_object_list(self, request):
    return [self.obj_get()]

def obj_get_list(self, request=None, **kwargs):
    return [self.obj_get()]

def obj_get(self, request=None, key=None, **kwargs):
    setting = SettingObject()
setting.value = 'whatever value'
return setting
Создание ресурса deliciouspie для «одноэлементного» объекта, не являющегося моделью