Somewhat related follow up question:

I have added a new model to django/tests/postgres/models.py, how do I now 
run makemigrations to generate a new migration for this model? Since the 
settings necessary to work with the test scaffolding is embedded in 
runtests.py I can't figure out how to use any of the django-admin commands 
on the test apps.

Any help would be greatly appreciated.

On Saturday, December 10, 2016 at 9:35:14 AM UTC-5, l...@damoti.com wrote:
>
> Hello,
>
> Does anyone here use PyCharm to hack on django? How do you run the unit 
> tests? Specifically, PyCharm has its own runner and django has it's own 
> runner in tests/runtests.py.
>
> It appears that the main thing I need from runtests.py is the settings. Is 
> there a good way to extract the necessary things from runtests.py into a 
> custom settings file so that the django tests could be run without 
> runtests.py (and instead with an IDE)?
>
> My goal is to be able to click on specific tests in the PyCharm IDE and 
> either run or debug them.
>
> Thank you,
>
>  Lex
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a2d4d693-6889-4eaa-8154-4e538bc4bf5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to