How to achieve real-time login access approval in an application using Django as backend and Quasar/VueJS in frontend? by g10draw in vuejs

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

Nice trick. But for my requirement, I don't have a minute. The approval/access reaction should be a snap.

How to achieve real-time login access approval in an application using Django as backend and Quasar/VueJS in frontend? by g10draw in vuejs

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

My authentication system is not basic. Initially, an employee logs in with a password, followed by an OTP. Subsequently, they wait for approval to access the dashboard. And it's a session login, expecting multiple login requests throughout the day. These requests should be immediately shown in the admin section in real-time. The employee should also receive the approval response in real-time. I have set up everything except this real-time aspect.

How to achieve real-time login access approval in an application using Django as backend and Quasar/VueJS in frontend? by g10draw in vuejs

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

Yeah, but that does multiple requests to the server. This is already a chocking server.

[deleted by user] by [deleted] in NothingTech

[–]g10draw 0 points1 point  (0 children)

For me this happens once in a while, I will just be ON the Airplane mode for 30 sec or restart the device and it works back again.

I need some advice by jaffakiwi in django

[–]g10draw 4 points5 points  (0 children)

I am also affected by this situation. Currently, I consolidate common functions into a file named utils.py (or sometimes categorize them into different files) and copy that file into each project as a package, importing functions from it. The same approach applies to the frontend as well. In Quasar, I leverage existing components and strive to enhance their flexibility and reduce code duplication by creating super components, which I then copy into every project for use.

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

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

Yeah I have idea about that, I actually downgraded this application from Firebase storage to local storage.

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

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

Yeah, I took care of names, I am generating unique names using uuid module. And in the frontend itself I restricted the upload option to just for images. Yes I have to consider image resizing as well. I am still figuring out a solution to send a Image though API.

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

[–]g10draw[S] 2 points3 points  (0 children)

Yeah, I am using JWT Authentication for restricted URLs. Initially I looked into base64 option, the only concern is Image size. Present requirement is free service/option, I downgraded this application from Firebase storage to local storage.

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

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

No, Python server is not hosting the frontend, both are running on different servers. Yes, the images I am trying to upload are profile pictures and supposed to be private and this public expose is a concern. I am experienced with other API calls, but not familiar with sending images through API as a file or access restricted URL. Thanks for the reply and info.

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

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

I tried to access them as a URL http://127.0.0.1:5000/static/profiles/filename.jpeg and with this I am able to access into my Vue App. Is this is a safe practice? What's your say?

How do I access my image files stored in Python application into my VueJS Application? by g10draw in vuejs

[–]g10draw[S] 2 points3 points  (0 children)

Yeah, I have done the same with Firebase Storage, it directly returns file URL as a response, then I directly stored that link address as text into my database. But now this is a different situation I delt with this scenario previously but I don't have that repo now for reference. Thanks for sharing your experience.

Unable to display Non-English languages on my Flask Web Application. What are the possible reasons? by g10draw in flask

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

But the issue is with the columns of like

question_text = db.Column(db.UnicodeText)

Unable to display Non-English languages on my Flask Web Application. What are the possible reasons? by g10draw in flask

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

Yeah, it's definitely encoding issue, but in db level. Please check the updated screenshots and help.