开发者

django custom management command does not show up in production

I wrote a custom management command for django. Locally with my dev settings everything works fine. Now I deployed my project onto the production server and the management command does not show up, respectively is not available. But I did not get an error message deploying the project (syncdb).

Any ideas where I coul开发者_JS百科d try to begin to search? Is there a special command that all custom management commands are "autodiscovered"?

--Edit--

Solved and documented here


Two ideas for you:

  • The settings.py or local_settings.py file is different on the production server and doesn't initialize the app with your custom command.
  • It has something to do with DEBUG being enabled/disabled. Do you have some type of variable setting somewhere that would affect that?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜