Monday, November 16, 2015

[Django 1.8.6] How to dump sql from models

Hi!

After upgrade from 1.5 to 1.8.6 I'm trying to dump sql from models.
I'm not using django migrations, and my db_router does not allow for migrations.

Every "sql*" management command gives me nothing (empty output), where I'm expecting generated SQL.

  1. How can I dump tables and indices creation sql from my models with new Django?
  2. What was wrong with old-style method?

Kind Regards,
Marcin

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f401bdc-dd91-48b4-b8f8-5206db588d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment