|
Hi, The app in my main domain is a django app, where the user will log on. How could I then have the credentials transferred to the osqa app running in a subdomain? I want the user to sign on once, but be able to go back and forth between two applications as though they were one. I frankly would like to have a single application, but just think that it is complicated to do that, given the early state of osqa, and my main app (django-cms). Neither of these projects were designed (imho) to be "django applications". So I am afraid of interactions if combined, especially regarding things like middleware (to which, in the django-cms, I have added some of my custom modules to boot). Any ideas welcome! Thanks. |
|
Ok, here is what I finally did.
Can you tell me the visit url of your site?
(30 Sep '11, 04:02)
fangpeng
|
|
So I imagine you'll not be running both into the same project. Which in my opinion is a great option since there is no need to be running django-cms specific middleware on each osqa request and vice versa. Probably the easiest thing to do is to make them share the same database, that way both will use the same user table and session table (if you store sessions in the database). The biggest problem is related with external authentication providers, since I don't know hoe django-cms handles that info, but I can imagine it is a bit different from OSQA, so basically if someone registers using myopenid from django-cms, you'll have to tell OSQA about it and vice-versa. That problem won't occur with local registration. But I guess that will be an interesting exercise. Come to the OSQA chat room and I'll try to help you out. |