Friday, May 3, 2013

Re: Creating Tables w/o SyncDB (Django ORM)

On Fri, May 3, 2013 at 2:01 PM, Christian Schmitt
<c.schmitt@briefdomain.de> wrote:
> Hi there,
> is there a possible way of creating tables with Django's ORM w/o SyncDB. It
> would be really helpfull, to make new tables while doing some UI
> interactions.
>

Do you want to do everything exactly that syncdb would do?

from django.core import management
management.call_command('syncdb', noinput=True)

Do you want a meta language for creating tables?

http://south.readthedocs.org/en/0.7.6/

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate