å æ¥django-tastypieã§ä½ã£ãAPIã«Basicèªè¨¼ããããæ¹æ³ã試ãã¦ã¿ã¾ããã ä»æ¥ã¯èªåçã«çæãããApiKeyã使ãApiKeyèªè¨¼ã¨ããã®ã試ãã¦ã¿ããã¨æãã¾ãã Basicèªè¨¼ã§ã¯ã¦ã¼ã¶ã¼ã®ãã¹ã¯ã¼ããå¿ è¦ã§ãããããã好ã¾ãããªãå ´åã¯ãã£ã¡ã使ãã¿ããã§ãã ApiKeyèªè¨¼ããããã«ã¯Resourceã®Metaã¯ã©ã¹ã«authentication = ApiKeyAuthentication()ãè¨è¿°ãã¾ã resources.py from tastypie.authentication import BasicAuthentication from tastypie.resources import ModelResource from tastypie.authorization import Authorization from app.model
{{#tags}}- {{label}}
{{/tags}}