Re: Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
I see, thanks for your answer, however I encounter an error that says
'User'  object has no attribute 'pk' when I try to do:
login(request, user).

Could someone help?



On Tue, Jan 21, 2014 at 12:32 AM, Начаров Михаил  wrote:

>  Hi Chen.
>
> There are several session backends in django: database, cached,
> file-based. You can read about them on this 
> page.
> But I didn't see obstacles for using default django configuration. You can
> use django models for django contrib application, while in your own apps
> still using sqlalchemy.
>
> Cheers!
>
>
> 21.01.2014 11:04, Chen Xu пишет:
>
> Hi everyone,
> I am wondering if there is a way to customize django's session backend
> like we can do it for user authentication backend, the reason why I ask
> this is that when I call django.contrib.auth.login, it gives me the error
> no django_session table since I am using sqlalchemy, I did not do python
> manage.py syncdb at all.
>
>  Thanks in advance.
>
>  --
> ⚡ Chen Xu ⚡
>  --
>
>
>  --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/52DE0671.101%40gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
⚡ Chen Xu ⚡

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACac-qYPKLPUjqmbVTtosyNN%3DqxdbnwO7GZL2tXKOV7ZtLSYPw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Question about customizing Django's session backend.

2014-01-20 Thread Начаров Михаил

Hi Chen.

There are several session backends in django: database, cached, 
file-based. You can read about them on this page 
. But I 
didn't see obstacles for using default django configuration. You can use 
django models for django contrib application, while in your own apps 
still using sqlalchemy.


Cheers!


21.01.2014 11:04, Chen Xu пишет:

Hi everyone,
I am wondering if there is a way to customize django's session backend 
like we can do it for user authentication backend, the reason why I 
ask this is that when I call django.contrib.auth.login, it gives me 
the error no django_session table since I am using sqlalchemy, I did 
not do python manage.py syncdb at all.


Thanks in advance.

--
⚡ Chen Xu ⚡
--


--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52DE0671.101%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
Hi everyone,
I am wondering if there is a way to customize django's session backend like
we can do it for user authentication backend, the reason why I ask this is
that when I call django.contrib.auth.login, it gives me the error no
django_session table since I am using sqlalchemy, I did not do python
manage.py syncdb at all.

Thanks in advance.

-- 
⚡ Chen Xu ⚡

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACac-qZ-MRhPkAtKC7szaAkCmNkOxXysTr40PQ_qbpksMBjw8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.