take a look here
http://www.djangoproject.com/documentation/model-api/#providing-initial-sql-data

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