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
orlocal_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?
精彩评论