Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-05 Thread Siddharta G
Your apache config can be something like this Location /path1/ SetHandler python-program PythonHandler django_project_1_frontend PythonInterpreter django_project_1 PythonOption django.root /path1 SetEnv DJANGO_SETTINGS_MODULE apps.settings PythonDebug On PythonPath

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-02 Thread Anand Balachandran Pillai
On Wed, Dec 1, 2010 at 11:40 AM, Anubha Dadhich sethi.anu...@gmail.comwrote: Hi, Can two django projects be made to communicate with each other and share the same session, user_authentication etc., either at the application level or at the production server level (say apache) Explaining

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Siddharta G
Yes you can, we do something like what you mentioned. If both projects share the database, and are on the same domain (ie they share the cookie) then you can login in one and be authenticated in the other. Both projects need to be configured to use the same auth backend (its like this by default)

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 4:14 PM, Siddharta G siddharta.li...@gmail.comwrote: Yes you can, we do something like what you mentioned. If both projects share the database, and are on the same domain (ie they share the cookie) then you can login in one and be authenticated in the other. Both

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Lakshman Prasad
If I understand what you are saying, You have 2 different projects in django, (in different repos) and you don't want to have user logged in, in each site. The *simplest* way to solve this is to configure the django.contrib.auth of both the projects to use the same database. - And yes, it is a

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 5:16 PM, Lakshman Prasad scorpion...@gmail.comwrote: If I understand what you are saying, You have 2 different projects in django, (in different repos) and you don't want to have user logged in, in each site. They are in the same repository. Yes we do not want user to

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Lakshman Prasad
If you have 2 base urls.py, I think correspondingly, you also need 2 settings.py and hence 2 WSGI files. As far as I know, each Apache virtualhost can only take 1 WSGIProcess. So you will need 2 apache processes. - I might be wrong on this, and there might be a better way. The best way, I can

Re: [BangPypers] Can two django projects be made to communicate to each other

2010-12-01 Thread Anubha Dadhich
On Wed, Dec 1, 2010 at 5:59 PM, Lakshman Prasad scorpion...@gmail.comwrote: If you have 2 base urls.py, I think correspondingly, you also need 2 settings.py and hence 2 WSGI files. As far as I know, each Apache virtualhost can only take 1 WSGIProcess. So you will need 2 apache processes. - I

[BangPypers] Can two django projects be made to communicate to each other

2010-11-30 Thread Anubha Dadhich
Hi, Can two django projects be made to communicate with each other and share the same session, user_authentication etc., either at the application level or at the production server level (say apache) Explaining it further - Say there are two django projects, with different settings file, but