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.pyorlocal_settings.pyfile is different on the production server and doesn't initialize the app with your custom command.
- It has something to do with DEBUGbeing enabled/disabled. Do you have some type of variable setting somewhere that would affect that?
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论