Re: Run manage.py test app_name command from view

2017-11-26 Thread Matemática A3K
On Mon, Nov 27, 2017 at 3:21 AM, Joshua O. Morales < joshuao.morale...@gmail.com> wrote: > I tried it out, but I'm still getting 400 error. > 400 means "Bad Request", if was something wrong inside the view, the server should return a 500 (Internal Server Error). I think probably it isn't executin

Re: Run manage.py test app_name command from view

2017-11-26 Thread Joshua O. Morales
I tried it out, but I'm still getting 400 error. I attached a copy of the tests.py of the app. Maybe you'll find something I can't. views.py: from django.shortcuts import render from django.core.management import call_command def start_scraping(request): call_command('test','seleniumapp')

Re: Run manage.py test app_name command from view

2017-11-26 Thread Matemática A3K
On Sun, Nov 26, 2017 at 11:03 AM, Joshua O. Morales < joshuao.morale...@gmail.com> wrote: > What I would like to do is to execute the tests.py by clicking a certain > button. I am trying to run the tests.py via views.py, but it gives me a > 400 Bad Request error. Is there any other solution? > Y