Monday, 12 August 2013

django-tastypie: how to add custom commands

django-tastypie: how to add custom commands

I know how to add custom commands for django projects. But when I use
tastypie, the way to add custom commands just doesn't work. My currently
file layout looks like below:

api/
__init__.py
manage.py
api/
models/
resources/
management/
__init__.py
commands/
__init__.py
createapikey.py

I don't know where should I put the management directory. In fact, I have
already tried to put the whole management directory in up-level directory
and inside the api/api/ folder. Neither way works.

No comments:

Post a Comment