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
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
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
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
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
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
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
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
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
9 matches
Mail list logo