I have the django model called "create-chat" and there I write names of people I want to see in a group chat. So. I created the model, but I don't know how to make a condition whether user is in django_db or no, if so then I want to show them the button "join chat" And after clicking the button he will be transferred to the url sitename.com/lobby/1 Now I have the view that shows the page /lobby/any_number First of all I'd to block these pages from users and only if the user is in django_db He is able to visit the page Lobby/1 ONLY THE lobby/1 not lobby/2 I don't ask you to do it, I just want you to explain me how to do it, or maybe advice me some articles about my problem. https://i.stack.imgur.com/FQw4Y.jpg
..1). How to block all users for visiting this url sitename.com/1234 <- here goes any number u d liked. ( 4 characters ) So now I blocked all the users for visiting this page, and how now make it visible for a certain users/user?