2

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 could try to begin to search? Is there a special command that all custom management commands are "autodiscovered"?

--Edit--

Solved and documented here

Community
  • 1
  • 1
Thomas Kremmel
  • 14,135
  • 24
  • 105
  • 171

1 Answers1

0

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?
T. Stone
  • 18,796
  • 15
  • 68
  • 95
  • both settings.py initialize the corresponding app. In production I set DEBUG and TEMPLATE_DEBUG to FALSE whereas in dev. it is set to TRUE. But this should not affect the management commands. thanks for your reply! hmm... strange.. – Thomas Kremmel Apr 29 '10 at 07:09