Thanks for your response Artiom, but i have a question about it.

the documentation you link me says: "for each model in each specified
app, this command looks for the file <appname>/sql/<modelname>.sql"
but i want initialize the auth_group table, so i haven't a model for
that. i tried to put a groups.pyyaml.sql but it does not anything.

Thanks.

On 20 nov, 18:55, Artiom Diomin <[EMAIL PROTECTED]> wrote:
> take a look 
> herehttp://www.djangoproject.com/documentation/model-api/#providing-initi...
>
> PS: note, you can different formats for inial data, I'm for example
> using pyyaml (it's database backend independent)
>
> Jose Jiménez пишет:
>
> > Hello everybody,
>
> > I'm starting a project in django. I need some custom permissions that
> > i created in the model with "class Meta". Now i need to create
> > some groups. I've seen that i can create groups from the
> > administration panel, but... i would like to create from source code,
> > so, if other person downloads the code and installs django, could make
> > a "syncdb" and automagically has the same groups.
>
> > I've been looking for in google but i haven't found anything. Is it
> > possible??
>
> > Sorry for my english, i hope you understand me.
>
> > Thanks.
>
> > ---
> > Jose Jiménez
> > [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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