Source Code with additional things (Authentication + Session State): github.com/Ashwani132003/pondering/blob/main/test.py
@beginnerscodezone
Жыл бұрын
Sorry for some audio glitches in the video, Next part for authentication will be uploaded soon.
@finamusrofina3426
Жыл бұрын
thanks sr
@beginnerscodezone
Жыл бұрын
Ask your doubts here, if any.
@dzenitvildic6269
4 ай бұрын
Hello, in this code, the user should only read the post I wrote on the home.py page. It turns out that in the code you wrote, a different user can delete text from another user and write it again. What should I do to fix this?
@beginnerscodezone
4 ай бұрын
Hi, on website only the one logged in user should be able to delete and write posts from that specific account, for authenticating the users you should use: github.com/Ashwani132003/pondering/blob/main/account.py Make sure to pass your webapi key from your firebase account (Next video is for auth.). And if you mean that from code anyone can change posts, then yes, as the app is totally public incl. keys, for teaching purpose, one can change, you can either make your repo private or keep your keys secret (i have a video on that), I hope your doubt is resolved, if still not, feel free to ask again, thanks
@dzenitvildic6269
4 ай бұрын
@@beginnerscodezone No, I mean here that one user can share a post. Then the second user can edit what the first user shared even if the second user did not write that post
@beginnerscodezone
4 ай бұрын
@@dzenitvildic6269 Aah, this is not actually updating the post, its just visible like that to the user once you rereun the website it would come same as before, if you want i think there is some disable parameter in text-input of streamlit, you can just use that in code where you are doing this or keep it as it is, as it won't update.
@dzenitvildic6269
4 ай бұрын
@@beginnerscodezone Yes, I searched streamlit, I just "disabled=True" command, but this time the text is not so visible. Do you know of a better solution?
@beginnerscodezone
4 ай бұрын
@@dzenitvildic6269 lemme try it
@syaifak
6 ай бұрын
do this streamlit using mysql? for the database
@beginnerscodezone
6 ай бұрын
I have uploaded a video for using MySQL Database with Streamlit, and if you want to add login page to that then, yes you can do it this way. I hope this clears your doubt, if not feel free to ask again, Thanks!
@akashjoju8606
2 ай бұрын
Is it will be responsive
@beginnerscodezone
2 ай бұрын
Yes, Streamlit handles most of the responsiveness itself, you can check the full website here: pondering.onrender.com/
@vijaynavuluri
7 ай бұрын
Help me it's not working 😢
@beginnerscodezone
7 ай бұрын
Hey what's the exact problem could you please elaborate, would be great if you can ask in our discord channel (mentioned in channel description). Thanks
Пікірлер: 19