Ok, this is what i'm trying to do. I don't know if you're familiar with comet chat ( soft of a chat like facebook chat ), and i'm trying to install it along OSQA. I succeeded to install it on a server ( works great ) but, i can only use the chat function after user is logging in. I read their specifications on "how to" do this, but i'm sort of confused ( i'm new to Python ). Bellow is on their support page.
"If you are using another language like ASP, ColdFusion, Python etc. then set a cookie immediately after login with the user's ID. You can read that using the following function :"
Ok, i know a little bit more PHP and i understand what this function does... but how can i get the current Session from python ? That's my problem... Also, they've mentioned the fallowing :
"If you are using a more complex method of authentication like storing the session_hash in the database, then your getUserID() function will look something like:"
Looked around the web and did read that django uses a DB table for storing sessions ( don't know yet if OSQA is doing the same ).
Anywho, any help is much apreciated... a line of code, a link ... :)
you can use some ready django apps with chat functionalities. like: https://github.com/thepug/Speeqe (Stackoverflow's chat.stackoverflow.com) using it. and just easy integrate it with osqa coz it's django-based too. other links: http://code.google.com/p/django-chat/ and http://code.google.com/p/django-jqchat/ I'm myself, using chat from http://ape-project.org with my django project.
answered 14 Apr '11, 10:53