2
我收到以下錯誤,當我試圖訪問http://localhost:8000/api/goal/?format=json:Tastypie網址配置不正確
ImproperlyConfigured at /api/goal/
The included urlconf <property object at 0x262bb50> doesn't have any patterns in it
以下是我已經添加到我的urls.py:
goal_resource = GoalResource
...
url(r'^api/', include(goal_resource.urls)),
這裏是我的API .py:
class GoalResource(ModelResource):
class Meta:
queryset = Goal.objects.all()
resource_name = 'goal'
任何想法可能會出錯?