On 14/07/10 19:42, T.L wrote:
> So, I am using request.sessions in one of my views functions but I
> want to add a few more fields to the Session class so it will be
> customized for my project.
> To sum it up, can anyone tell me some way to customize the Session
> class to my liking?
>
It see
I think a custom middleware solution might work here? Just have a
custom middleware run initially that adds the instance of your session
class to the request object.
I haven't tried anything like this before but it might work.
-Sid
On Jul 14, 11:42 pm, "T.L" wrote:
> So, I am using request.sess
So, I am using request.sessions in one of my views functions but I
want to add a few more fields to the Session class so it will be
customized for my project. When I tried to go to the Session class
(in django.contrib.sessions.models) and simply adding in an extra
field, and then adding it to my a
3 matches
Mail list logo