How to use RSA-SHA256 in python using private key

2018-08-05 Thread prakash sharma
Hi all, I am stuck while salesforce jwt-bearer auth. I need help in this code section: String key='x'; Blob privateKey = EncodingUtil.base64Decode(key); String signature = System.encodingUtil.base64Encode( Crypto.sign('RSA-SHA256',

How to use RSA-SHA256 in python using private key

2018-08-05 Thread prakash sharma
Hi all, I am stuck while salesforce jwt-bearer auth. I need help in this code section: String key='x'; Blob privateKey = EncodingUtil.base64Decode(key); String signature = System.encodingUtil.base64Encode( Crypto.sign('RSA-SHA256',

Re: How start django server automatically using pytest-django

2018-07-07 Thread prakash sharma
RE:'do you want to test on development server' NO, Drone is running the test cases.I don't want to run the runserver command. On Saturday, July 7, 2018 at 5:12:51 PM UTC+5:30, Kamal Sharma wrote: > > do you want to test on development server?? > > > On Sat, Jul 7, 2018 at 1:17 PM,

Re: How start django server automatically using pytest-django

2018-07-07 Thread prakash sharma
@Mikhailo I agree, that we should not use requests. But then what is point of using pytest-django then?? I am using pytest-django with the hope that it will manage and restart the server itself. On Saturday, July 7, 2018 at 4:41:25 PM UTC+5:30, Mikhailo Keda wrote: > > read more about testing

How start django server automatically using pytest-django

2018-07-07 Thread prakash sharma
Hi there, I am facing issue that my django server is not started . I want to run the pytest-django for test cases without manual runserver. Here is my test file: import requests def test_demo(): response = requests.get('http://0.0.0.0:8000/' + "demo") assert

Re: Django performances issue

2018-05-02 Thread prakash sharma
Hi @Julio I am also planning to go for the job/message queue, but for this we have to change the default follow so this not feasible at this moment for me. For now what can be the best approach. Like server scaling, worker count > On Wednesday, May 2, 2018 at 6:54:23 PM UTC+5:30, prak

Django performances issue

2018-05-02 Thread prakash sharma
I have developed the API using DRF but facing the major performances issue. Here is what the scenario is: I am using DRF. Our API call is growing towards 5k per day. Each API call is taking 3 to 10 minutes of time while responding ( as It creates upto 300 pdf label unique format) I am using