Re: Public and Private Chat Room Creation with Django Python Framework

2022-11-21 Thread Chukwudi Onwusa
Thanks man. On Mon, Nov 21, 2022, 00:50 Lakshyaraj Dash wrote: > class Room(models.Model): >... >is_private = models.BooleanField(default=False) > > In views.py > def chat_room(request): > if room.is_private: >return redirect ("/") > else: >... > > On Mon, Nov 21,

Re: Public and Private Chat Room Creation with Django Python Framework

2022-11-20 Thread Lakshyaraj Dash
class Room(models.Model): ... is_private = models.BooleanField(default=False) In views.py def chat_room(request): if room.is_private: return redirect ("/") else: ... On Mon, Nov 21, 2022, 04:03 Chukwudi Onwusa wrote: > Please can you help me with a sample. > Please.

Re: Public and Private Chat Room Creation with Django Python Framework

2022-11-20 Thread Chukwudi Onwusa
Please can you help me with a sample. Please. On Sun, Nov 20, 2022, 15:53 Lakshyaraj Dash wrote: > Provide is_private to the rooms model of your app. > If you make the default as true, then the room is private by default and > vice versa > > On Sun, Nov 20, 2022, 20:21 Chukwudi Onwusa wrote: >

Re: Public and Private Chat Room Creation with Django Python Framework

2022-11-20 Thread Lakshyaraj Dash
Provide is_private to the rooms model of your app. If you make the default as true, then the room is private by default and vice versa On Sun, Nov 20, 2022, 20:21 Chukwudi Onwusa wrote: > Greetings and good tidings! > Please how do I create with django the above mail subject(private and > public