Re: Running django tests with postgres

2018-09-14 Thread Mike Dewhirst
+1 Andréas One of my projects runs (currently) 1,248 tests using SQLite3 in 72 minutes on my local Windows 10 dev laptop. That laptop has both a SSD and a hard disk. Foolishly I opted to use the SSD for software installations and the hard disk for development and thus the tests. I was

Re: Running django tests with postgres

2018-09-14 Thread Andréas Kühne
Hi, Just my 5 cents. I think you are doing the tests wrong. I don't believe that doing testing against hard coded values is at all correct - and it isn't actually that hard to change the tests to a simpler way. The values of the PK's aren't really necessary for your test to be true either - how

Make the timeout argument to cache_page decorator optional

2018-09-14 Thread Anirudha Bose
Hello, I have a suggested improvement for the cache_page decorator. This is how the decorator is used, according to the docs : from django.views.decorators.cache import cache_page @cache_page(60 *

Running django tests with postgres

2018-09-14 Thread Hezi Halpert
I would like to share with you an issue we encounter while moving from sqlite to postgres with heavily use of Django testing. We have Django app with ~700 tests. Most of them accessing database. We recently migrated the database from sqlite to postgres. Many of our tests were written in a way

Add Extra functionality when login as super user login

2018-09-14 Thread Rupam Hazra
Hi, I want to add extra validation on superuser login.Actually i want to modify the login process due to security prospect. Step-1 : give username and password form and send a mail with otp Step-2 : after that a form will open and put that otp to verify then it's going to dashboard page. So,