Re: djngo unittest to use "real" database.

2020-09-06 Thread Mike Dewhirst
On 7/09/2020 3:27 pm, django-newbie wrote: > Hi All, > > I am currently writing test cases for views, Which eventually uses > database also. > By default a test database is being created and removed after test are > run. A refreshed database is most likely what you want for testing. There are ways

djngo unittest to use "real" database.

2020-09-06 Thread django-newbie
Hi All, I am currently writing test cases for views, Which eventually uses database also. By default a test database is being created and removed after test are run. As the database itself is development database, I don't want my test to create a separate db but use exciting only. Also I will l

django widget radio button error save is not touch

2020-09-06 Thread carlos
Hi, i have a problem when save a field in radio button in my models have this CHOICES_OPTIONS = ( (1, 'Yes'), (2, 'No'), ) class MyModels(...): myfield = models.IntegerField(choices=CHOICES_OPTIONS, null=True, blank=True) class MyModelsForm() myfield = forms.ChoiceField(widget=form

Re: Django+DjangoRestFramework+React+Redux open source projects

2020-09-06 Thread Shishir Jha
And here are the two repos which represent frontend and backend for a react and django app that I built during a hiring process. Note that this is a very beginner level. I had to submit it within 10 days. But it covers all the basics like rest apis, authentication,authorization, calling backend res