i added 
v1_api.register(ArtistResource()) 
in my main url 

and this is the code in meta class 

 class Meta:
        queryset = Artist.objects.all()
        resource_name = 'artist'
        #authentication = Authentication()
       # authorization = Authorization()
        excludes = ['rating', 'override_rating', 'force_inclusion']
        allowed_methods = ['get','post']
        aklogger.info(Artist.objects.all)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/36a8ccd7-f136-4baa-bff3-d80b6db4898c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to