At least to me it doesn't make a lot of sense to define new models in your
tests, but I also don't know the particular problem you are solving.

On Sat, Jan 16, 2016 at 1:27 PM, Brutus Schraiber <brutus....@googlemail.com
> wrote:

> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/d74d74d4-770b-464a-bcf0-55b90424a724%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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/CALn3ei13bKPpM0yDzYKCvmuDS_gm-9O_AH_J0nDiKQqm2TARXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to