Search code examples
djangodjango-signals

Django initialization code?


I have some initialization code that I would like Django to run once, when the site is created.

Would it be appropriate to hook this code into a syncdb signal? If so, where would this signal go? But won't think run the code several times if I syncdb multiple times?


Solution

  • I think, you should use some deployment tool like fabric.