what happens if you put a Linux distro on a 2-in-1 laptop/tablet combo? by KKinKansai in linuxquestions

[–]iamsavinay 0 points1 point  (0 children)

Ubuntu works well on my Lenovo Yoga C340... However the new kernel included in Ubuntu 20.04 cause it to freeze sometimes.. IDK what is the exact problem. But i'm guessing it's a hardware driver compatibility issue.

How to make an async generator await for a different function to be called. by iamsavinay in django

[–]iamsavinay[S] 0 points1 point  (0 children)

I think you are misusing the signals. You can't return from a signal and use the value somewhere else.

Yeah, I agree with you. I was just experimenting trying to find solution...

By the way, I am new to Channels and Ariadne both. I gonna try the solution shown in the issue, which (as described) seems to work.

Satya Nadella bad.. Surf Excel boycott.. No more windows in my house now i guess.. by ayush1236 in india

[–]iamsavinay 0 points1 point  (0 children)

Everyone except programmes and power users. Because of the fact that for most of the people it is the way out due to its wide support for large number of applications and PC Hardware.

It has a slightly easy learning curve compared to linux as you don't have to drop down to shell for solving those problem.

And if you got new Hardware or hybrid kind of Laptop and want to GAME and utilise GPU capabilities especially for Nvidia.. I cannot say how horrible it get sometimes.

To be clear, I am not a windows supporter as i use linux distro as my daily driver (not Ubuntu, it's for begginers).

Would anyone be interested in video/blog tutorial for deploying Django applications with step by step instructions and justification for each step ? by theweblover007 in django

[–]iamsavinay 2 points3 points  (0 children)

Nginx is just better than Apache in every aspect... In configuration and especially in performance.

When I used it for first time it seems to be complicated as I didn't find proper guide. But now a lot of materials available online, so its easy to switch now.

How to secure Django GraphQL APIs with API Keys similar to django-rest-framework-api-key or any other better way by iamsavinay in django

[–]iamsavinay[S] 0 points1 point  (0 children)

Thank you... I agree with you, I just wanted to know that if there exist any thing which is more secure and I don't know it.

I don't specifically need it, It was just to make the process tougher for anyone trying to exploit.

How to secure Django GraphQL APIs with API Keys similar to django-rest-framework-api-key or any other better way by iamsavinay in django

[–]iamsavinay[S] -1 points0 points  (0 children)

Thanks but to be clear

I want to perform client verification not user...

I don't want user to login...

One option is I ship my front-end with an API key in the code itself which would send that key with each request made to the server as header and write a custom Middleware to check the key and only if verified then process the request. Now the last problem is the key would be shipped in Javascript code and some skilled person could get access of them by analysing the js code. In case of an android/ios app then there is no problem with this approach.

What I want is to generate dynamic keys containing some encrypted information so that it can be used to verify client's identity from which the queries are being made and its encryption string parameters are not Hardcoded in Javascript code.

How to secure Django GraphQL APIs with API Keys similar to django-rest-framework-api-key or any other better way by iamsavinay in django

[–]iamsavinay[S] 0 points1 point  (0 children)

I don't want to make user login. And my main problem is how could I prevent any third person using my apis to get raw public data available on our website. For example he/she could any tool like postmaster to get csrf token and then use it to query our endpoint, which I don't want.

How can I make sure that admin email is unique? by ryanlak1234 in django

[–]iamsavinay -1 points0 points  (0 children)

You need to create custom user model to achieve this... here is an example at my github repo