Re: How to convert Queryset to String?

2018-01-02 Thread Joshua O. Morales
rinting a queryset object make no sense! > > HTH > > Etienne > > Le 2018-01-02 à 04:30, Joshua O. Morales a écrit : > > title = Title.objects.filter(title=title) > print(title) > Is there a way to turn this: > *]>* > into a string: > *Hello, World* >

How to convert Queryset to String?

2018-01-02 Thread Joshua O. Morales
title = Title.objects.filter(title=title) print(title) Is there a way to turn this: *]>* into a string: *Hello, World* I tried using it as an argument but it gave me an error. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Re: Run manage.py test app_name command from view

2017-11-26 Thread Joshua O. Morales
7;test','seleniumapp') return render(request, 'seleniumapp/selenium.html') On Monday, November 27, 2017 at 3:40:58 AM UTC+8, Matemática A3K wrote: > > > > On Sun, Nov 26, 2017 at 11:03 AM, Joshua O. Morales > wrote: > >> What I would like to

Run manage.py test app_name command from view

2017-11-26 Thread Joshua O. Morales
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? Your help would be very much appreciated. Here's a snippet of the code: from django.core.manageme