Victor Proon
Victor Proon

Reputation: 271

How to specify actions performed by syncdb?

I need to make some installation action (create a table record) after python manage.py syncdb finishes it's work (just like when you syncdb with imported django.cotrib.auth.models.User and it asks to create a superuser). Where do i need to place the code?

Upvotes: 0

Views: 78

Answers (2)

Daniel Roseman
Daniel Roseman

Reputation: 599630

You want to use the post_syncdb signal.

Upvotes: 1

dani herrera
dani herrera

Reputation: 51665

Perhaps that you need is providing initial data for models with fixtures.

Upvotes: 1

Related Questions