well if your django app handles auth already, you can handle it than through token bypassing i.E. through a persistent session store or something like that. django stores the session in a key-val store, your node app fetches this session and check it for auth token. or you expose a rest-service from your django app, so node can ask you main app for authentication state.
the socket.io connection is opened when on client side io.connect is called and accepted by server. Am Mittwoch, 12. September 2012 22:59:02 UTC+2 schrieb refreegrata: > > Thanks for the reply. Python with Socket.io is an option. I thought in that > too. My doubt is about the webserver... comments and reviews in Internet > says that Apache isn't good with multiple connections. Maybe in my > application have just a few of users. In fact, just between 10-15, but in > the future (three - six months) I must to add some others elements based in > socket.io, and will arrive a lot of users. Also, another important > information: We don't have enormous servers (x32, 4GB RAM, P4) and we > aren't in position to buy bigger equipment promptly. For that I'm thinking > in node.js, for their recognized performance with very dinamic systems. > > On Wednesday, September 12, 2012 3:26:33 AM UTC-3, greelgorke wrote: >> >> may be its not a good idea to start a node.js just for real-time updates. >> you can use plain socket.io for it. here are infos about a python >> implementation >> http://stackoverflow.com/questions/4762086/socket-io-client-library-in-pythonand >> >> http://blog.pythonisito.com/2011/08/websockets-to-socketio.html >> >> good luck >> >> Am Dienstag, 11. September 2012 21:30:34 UTC+2 schrieb refreegrata: >>> >>> Hello list. I'm new here. A totally newbie trying to learn. >>> >>> I have a web application for internal use and developed with Django and >>> running over Apache. >>> In the app the access to every section is avaliable only for >>> authenticated users with permissions over the view (except for the login). >>> >>> For this I use the authentication module provided for Django. The basic >>> usage used for me is something like: >>> >>> @decorator_to_check_permission >>> def my_view(request.... >>> ...... >>> >>> Now I must to create a section with multiple data and a lot of >>> references and a lot of ajax. The section is almost finished. Just need one >>> more thing. The info in the page can be edited by multiple users. If an >>> user edit some section the other user must to refresh the page (or only a >>> section with ajax) to see the changes. Well, this is ugly. For that I want >>> to use node.js, just for this section inside the page. Learn about Comet >>> and programming this. Timers+Ajax or hidden Iframes aren't in my plans. >>> >>> Now my question. Are any way to check if the user is authenticated and >>> if have the permissions to get responses from node.js? Can I use the same >>> authentification from Django or I must to use another authentification >>> module from node.js? When the connection is opened? >>> >>> As you can see, i'm a little loss with this. Maybe my question is stupid >>> or not logical, but I don't know... the change isn't easy ...at least for >>> me. >>> >>> Bye, Cheers >>> >>> P.D.: Sorry for my english. Is ugly and rough. >>> >> -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
