Joseph Turian
Joseph Turian

Reputation: 16560

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?

Upvotes: 0

Views: 307

Answers (1)

DrTyrsa
DrTyrsa

Reputation: 31981

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

Upvotes: 1

Related Questions