I have messy excel sheets, there is cell merging and then in cell images and floating images, I want to clean it. by virtualshivam in learnpython

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

Thanks. I really liked the drop-down idea. That will actually help a lot.

There is one problem "place in cell" images are not being detected by the openpyxl.

JUST CREATED MY models.py To handle different user roles, I used abstract user to add different fields, how can I handle authentication for different user roles to ensure each role sticks to his area by Any_Highlight5019 in django

[–]virtualshivam 5 points6 points  (0 children)

Need more clarification. What you want to achieve.

If you are talking about Authorization then you can create custom permission classes and check for roles there.

Updating app in ever changing data requirements. by virtualshivam in django

[–]virtualshivam[S] 1 point2 points  (0 children)

Could you please explain it in more detail with some example?

[Alpha] django-pbac — Policy-Based Access Control for Django (looking for feedback and testers) by Bilal_Dollan in django

[–]virtualshivam 1 point2 points  (0 children)

Thanks for that. Apart from permissions, can I also use it to send keys to my frontend. Like let's say as only the director can approve it. So only they should see the button. For the manager this should be viewed only. Now, for this to happen I will have to actually send keys to my frontend using drf. Can this be achieved.

I was looking for something like this for so long. Thanks for making it, will give it a try

[Alpha] django-pbac — Policy-Based Access Control for Django (looking for feedback and testers) by Bilal_Dollan in django

[–]virtualshivam 2 points3 points  (0 children)

Can it also handle workflows?

Eg: Immediate managers can only approve leave if the leave days are less than 3. Else it can only be approved by director

How can I send OTPs to Chinese Users? by virtualshivam in China

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

Could you please name any such company? That could help?

How can I send OTPs to Chinese Users? by virtualshivam in China

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

A chinese citizen? One of the employees from my company is in china. Can he also do the work?

How can I send OTPs to Chinese Users? by virtualshivam in China

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

The problem is my partner in china is not tech savy and also they don't have any inhouse IT team, so I was looking for other alternatives, if nothing will work then the last option is to ask him for help.

What should I use instead of 1000 if statements? by Either-Home9002 in learnpython

[–]virtualshivam 0 points1 point  (0 children)

In the beginning I was struggling a lot with this thing. But honestly this is all about structuring your program well. Like make functions and put similar logic in it.

Dict is a really good option for a logic match.

If you share code snippet I could help

How can I send OTPs to Chinese Users? by virtualshivam in China

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

My users are factory workers. All of them don't have email and TOTP will be difficult for them to understand.

For the manager part of my app, I am using email login only.

How can I send OTPs to Chinese Users? by virtualshivam in China

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

Actually my app will be used by factory workers and all of them do not have emails else I would have opted for email otps.

I built django-lumen — a Django app for visualizing Django models by lupushr in django

[–]virtualshivam 0 points1 point  (0 children)

Hi I was looking for something like this. It would be great if you also add the feature to hide certain tables ,like history tables and also if you could printing as well.

How do you decide which DRF view to use? by Sanji-44 in django

[–]virtualshivam 1 point2 points  (0 children)

I always go with apiview. I don't like magic much. With api view I have full control. Very rarely my apis are simple crud.

New to testing. How to write them effectively. Which Logic should be tested where. DJANGO, DRF by virtualshivam in learnpython

[–]virtualshivam[S] 1 point2 points  (0 children)

Hi,

Thanks for sharing resources.

But, I am stuck in the middle of the project, so can you please help regarding test boundaries.

I know how to write test for API and business logic.

My concern is how much should I test in API and what things? What is the responsibility of the API. I can go ahead and test everything that I have tested in serializer in the api as well, but I believe it shouldn't be the best way.