from tastypie.resources import ModelResource
from .models import Music
class MusicResource(ModelResource):
    class Meta:
        queryset = Music.objects.all()
        resource_name = 'musictry'
music_resource = MusicResource()  #建立API資源