Hi Parth,
There is only one solution. It has two parts in which you will implement 2
design patterns for the chatbot.
*Singleton* and *Observer*.
RE : Where would you use it?
nikola = Chatbot() # it is called instantiating the chatbot
Wherever it is required :P
The idea is to create one and
Thanks a lot for your reply !
In the first part of your reply. I didn't really understand where exactly
would I actually use this
nikola = Chatbot()
and in which files would I import it? Can you please elaborate on the
second solution a bit?
On Sunday, 19 May 2019 02:59:30 UTC+5:30, Chetan
What you need is to implement 2 design patterns in your django app. Which
ones?
1. *Singleton* Design Pattern for the Chatbot. All the users and all of
their sessions are using the same chatbot instance.
Why?
Because when a new session is created for a user, he will be referring to
the same
I am currently implementing a Chatbot purely in python.
In my current implementation, each time the user starts a new chat from a
session, another Chatbot instance is launched and hence the Chatbot starts
from the initial state.
I wish to change that behaviour and make it similar to let’s
On 4/18/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 4/18/07, SlavaSh <[EMAIL PROTECTED]> wrote:
> > This is wrong "intentional design decision".
> > There few more web clients in the world besides the IE and Firefox.
> > Part of them does not support cookies.
>
> Django provides a sessions
On 4/18/07, SlavaSh <[EMAIL PROTECTED]> wrote:
> This is wrong "intentional design decision".
> There few more web clients in the world besides the IE and Firefox.
> Part of them does not support cookies.
Django provides a sessions framework in 'django.contrib.sessions'
(note the "contrib" in
This is wrong "intentional design decision".
There few more web clients in the world besides the IE and Firefox.
Part of them does not support cookies.
On 27 мар, 22:26, "RajeshD" <[EMAIL PROTECTED]> wrote:
> On Mar 27, 11:00 am, "SlavaSh" <[EMAIL PROTECTED]> wrote:
>
> > Is it any way to use
On Mar 27, 11:00 am, "SlavaSh" <[EMAIL PROTECTED]> wrote:
> Is it any way to use session (django) on browsers without cookie
> support ?
No. See the following for why not:
http://www.djangoproject.com/documentation/sessions/#session-ids-in-urls
Is it any way to use session (django) on browsers without cookie
support ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To
9 matches
Mail list logo