我想創建一個Django網站,更重要的是,導入TastyPie API。但每次我在我的本地運行/用品/ API /條,我得到這個錯誤信息: Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/articles/api/article
Using the URLconf defined in
型號: class Applicant_Skill(models.Model):
user = models.ForeignKey(User)
#applicant = models.ForeignKey(Applicant)
skill = models.ForeignKey('skills_layer.Skill')
active = models.B
我正在使用Tastypie以下資源和Django教程的相同模型。 from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from tastypie import fields
from tastypie.constants import ALL, ALL_WITH_RELA