Hi, I think you can use "Django signal feature". Threre is
documentation about that in the Django documentation web site.
I hope it was helpfull ....

[]s
Ronaldo.

On Tue, Sep 16, 2008 at 7:53 PM, Mathieu Leplatre <[EMAIL PROTECTED]> wrote:
>
> Should I post a new thread ?
> I cannot find anything about this way of using Django...
>
> On Sep 16, 9:12 am, Mathieu Leplatre <[EMAIL PROTECTED]> wrote:
>> Thanks for the tip.
>>
>> Indeed it loooks to be the way, however I am having app_label
>> errors...
>> It complains
>> Error: No module named p
>> (for polls)
>>
>> If I put my script in a module or remove Meta :
>> File "[...]/django/db/models/base.py", line 51, in __new__
>>     kwargs = {"app_label": model_module.__name__.split('.')[-2]}
>> IndexError: list index out of range
>>
>> I wanted a simple standalone script with basic database store /
>> retrieve of objects. Is it utopian ?
>> Thanks again
>>
>> On Sep 16, 1:31 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
>>
>> > On Mon, Sep 15, 2008 at 8:50 PM, Steve Holden <[EMAIL PROTECTED]> wrote:
>> > > This is k=nd of a wild-assed guess. Please tell me if it works.
>>
>> > > from django.core.management import call_command
>> > > call_command('syncdb')
>>
>> > That is the way to do it; the whole manage.py/django-admin.py system
>> > was refactored a while back to expose that interface so people can
>> > reach in and call commands programmatically.
>>
>> > --
>> > "Bureaucrat Conrad, you are technically correct -- the best kind of 
>> > correct."
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to