post_syncdb signal

2010-03-26 Thread SÅ‚awek Tuleja
Hi all! In my application i have mutable and immutable components. After sync_db command i use post_syncdb singal to create table with info about this components. How to pass new attr about component to register_component function established with post_syncdb signal? code: # Page models are

Re: post_syncdb signal: Called several times

2009-01-14 Thread Malcolm Tredinnick
uot; bit doesn't follow. The post_syncdb signal is only emitted once by the syncdb management command. > > But how can you know that the tabel for a particular model was just created? There's a slight oddity in the way the post_syncdb signal is emitted (it's not a completely sil

post_syncdb signal: Called several times

2009-01-14 Thread Thomas Guettler
Hi, I read the docs for the sync_db signal: http://docs.djangoproject.com/en/dev/ref/signals/#post-syncdb The signal gets fired several times. Since my app has several model classes. But how can you know that the tabel for a particular model was just created? Or do you need to write the cal

Problem with post_syncdb signal and its processing

2007-07-11 Thread [EMAIL PROTECTED]
Hi all, I need to create my own user groups and associated required permissions. Honza Kral in Czech Django forum has adviced me to handle post_syncdb signal in my Django application. It seemed to be an ideal solution, but I recognized that I am not able to work with permissions in my

Re: Post-post_syncdb signal?

2007-01-23 Thread Russell Keith-Magee
On 1/24/07, yary <[EMAIL PROTECTED]> wrote: > Two things- going back to my original issue, the post_syncdb signal > wasn't working because the custom permissions (in the Meta nested > class) weren't yet created. I also noticed the SQL hadn't been > executed, whic

Re: Post-post_syncdb signal?

2007-01-23 Thread yary
for Django 1.0. > The syncdb process does the following, in the following order: > - adds any new models > - For each model in the app (including old models): > - Invoke the post_syncdb signal > - if the model is new, install the initial data/SQL for the app > - Install the

Re: Post-post_syncdb signal?

2007-01-23 Thread Russell Keith-Magee
On 1/24/07, yary <[EMAIL PROTECTED]> wrote: > > I presume that the custom permissions and initial data loading is also > kicked off from the post_syncdb signal, and that my management.py is > getting the signal first. How to fix/work around? The syncdb process does the

Post-post_syncdb signal?

2007-01-23 Thread yary
I'm setting up some group permissions in management.py but am running into (I think) order-of-signalling issues. When I get my post_syncdb signal, my apps models are in the database, but the custom permissions (class Meta: permissions =...) aren't created. Also by looking at the verbose

post_syncdb signal problem

2006-09-17 Thread Matthew Flanagan
Hi, In one of my apps management.py files I'm trying to create a group and assign permissions to it via a method connected to the post_syncdb signal but it seems that all of the other models permissions haven't finished being set up before my method gets triggered. Do these signal