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,
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.
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:
>
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
4 matches
Mail list logo