Saturday, January 16, 2016

Re: How to view the generated SQL for test models?

Wrong place to ask such things?

This doesn't seem too uncommon or complicated, or am I missing the point?

Am Montag, 11. Januar 2016 16:06:22 UTC+1 schrieb Brutus Schraiber:
Hi all…

I have some models in a `test.py` file. How can I view the SQL that will be generated for them?

Something like `django-admin sql` or similar but for models defined in `test.py` not in `models.py`.

Regards,
-brutus

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d74d74d4-770b-464a-bcf0-55b90424a724%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment