Debug Django Test-cases

2022-02-25 Thread HEMENDRA SINGH HADA
Hi Team, I am writing some django test-cases, there are multiple test-cases are failing inside view or models, but I am not getting exact root cause for those failure, Could you please suggest me any tool which is used to debug the django unit test cases, Also if you can share my some good do

Re: Too many SQL variable

2019-02-18 Thread HEMENDRA SINGH HADA
0:52 schrieb HEMENDRA SINGH HADA: > > > In my current project we are using sqlite3, When I am fetching data from > > sqlite3 db tables and counting the query-set length it is giving me > error > > "Too many SQL query" when the length is more than 999. till 999

Too many SQL variable

2019-02-18 Thread HEMENDRA SINGH HADA
Hi All, In my current project we are using sqlite3, When I am fetching data from sqlite3 db tables and counting the query-set length it is giving me error "Too many SQL query" when the length is more than 999. till 999 its working fine, Please suggest some quick fix for this, Thanks in Advance

How can we secure django python files for production release?

2018-11-15 Thread HEMENDRA SINGH HADA
As we know python is interpreted language and we've to give it in readable format ? But how we can secure those files for production release so customer can't change it or modify it ? As like in Bin in C++, jar in JAVA and .exe in .Net https://stackoverflow.com/questions/53313395/how-can-we-sec

Re: How to delete least recently used not expired django sessions?

2018-08-18 Thread HEMENDRA SINGH HADA
Hi, I can suggest one thing it might be useful for you. For this you need to create one more attribute in session table like *last activity,* which will update every time when user is logged in and perform some action. Write one middle-ware which will check the activity of each user and update

Apache runs wsgi module twice in case of public router ip and internal server ip ?

2018-08-17 Thread HEMENDRA SINGH HADA
We've below netwrok setup Internal server ip : 192.168.153.20:443 Public router ip : 111.93.87.11:26060 We've port forwarding in router : 111.93.87.11:26060 to 192.168.153.20:443 So when we first access 192.168.153.20:443(Internal server ip) it runs/execute django application ( First time ) Now

Re: sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread HEMENDRA SINGH HADA
Than How can I achieve my Goal with sqlite and Django ?? Do you have any solution for that ?? On Monday, August 6, 2018 at 10:49:29 PM UTC+5:30, HEMENDRA SINGH HADA wrote: > > Hi Team, > > My application using sqlite DB and in my model table class, I have define > attrib

sqlite DB missed DEFAULT parameter from table definition

2018-08-06 Thread HEMENDRA SINGH HADA
Hi Team, My application using sqlite DB and in my model table class, I have define attributes like Below - class MyUser(AbstractBaseUser): email = models.EmailField( verbose_name='email address', max_length=255, unique=True, ) date_of_birth = models.DateFiel

Re: Downgrade and Upgrade Django migration

2018-08-04 Thread HEMENDRA SINGH HADA
igrations again > to upgrade the database to the latest again. For this you can use the > standard migrations in Django. > > The database stores the level of migrations the database has been migrated > to - so you can reload a backup at any stage. > > Regards, > > Andréas >

Downgrade and Upgrade Django migration

2018-08-04 Thread HEMENDRA SINGH HADA
I have a django based application. In this we are providing backup and restore facility for user. DB which we are using is sqlite. So please suggest me how to migrate database accordingly - both downgrade and upgrade for sqlite. -- You received this message because you are subscribed to the G