Thanks man.

On Mon, Nov 21, 2022, 00:50 Lakshyaraj Dash <dashlakshyaraj2...@gmail.com>
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, 2022, 04:03 Chukwudi Onwusa <chukswes...@gmail.com> wrote:
>
>> Please can you help me with a sample.
>> Please.
>>
>> On Sun, Nov 20, 2022, 15:53 Lakshyaraj Dash <dashlakshyaraj2...@gmail.com>
>> 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 <chukswes...@gmail.com>
>>> wrote:
>>>
>>>> Greetings and good tidings!
>>>> Please how do I create with django the above mail subject(private and
>>>> public chat room).
>>>> I need help and references to work on.
>>>> Thanks.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAGoV8nnwKZa%3DSYCfbcOX-n-3GRSOGTNgQKgz2%3DqF%2BMEddHGFig%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAGoV8nnwKZa%3DSYCfbcOX-n-3GRSOGTNgQKgz2%3DqF%2BMEddHGFig%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAF7qQgARiTfseCC3uu8iNJ7cAMDqo6joFmAwoO0KJCYAjL36QQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgARiTfseCC3uu8iNJ7cAMDqo6joFmAwoO0KJCYAjL36QQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGoV8n%3D7TrvjqCr_xuN2gojmMRntS4eUmxnzhuDQAY%3DYpeoSng%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGoV8n%3D7TrvjqCr_xuN2gojmMRntS4eUmxnzhuDQAY%3DYpeoSng%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF7qQgDgX8ampbdvgx5apQ4RUxD9OuCbHjr%3D09vownBpPCFu7Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF7qQgDgX8ampbdvgx5apQ4RUxD9OuCbHjr%3D09vownBpPCFu7Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGoV8n%3D2WqneBR%2BaCJiU%2Bo2xgpVh%3DHp6%2B2-5h1QVPnqUODVp-Q%40mail.gmail.com.

Reply via email to