Server push ajax

153 views
Skip to first unread message

psychok7

unread,
Apr 24, 2012, 7:14:17 AM4/24/12
to django...@googlegroups.com
hi, i have to implement  a Server push with django for a school project. my friend said that its very hard to make it work, that the software around is still buggy and all.

it that true? can you guide me to a easy way to implement this that works without any problems or workarounds?

i am still new to django and i dont have a lot of time so if you guys tell me its gonna take a lot of time ill probably switch to java or so

psychok7

unread,
Apr 24, 2012, 7:20:34 AM4/24/12
to django...@googlegroups.com
what about websockets?? are they better and easier to implement than ajax or not?

Tom Evans

unread,
Apr 24, 2012, 7:33:35 AM4/24/12
to django...@googlegroups.com

Have you done your research, eg by googling for appropriate existing
technology. I'd start with "Django pub sub".

Cheers

Tom

psychok7

unread,
Apr 24, 2012, 8:31:42 AM4/24/12
to django...@googlegroups.com
i have searched for ajax before and found very "divergente" comments (most of them being related to updates and stuff) so thats why i am asking here, i suposed you guys know better and can guide me towards the right way

PS: django-pubsub could work for wht i need, but i didnt see any ajax or websockets in the description though

ok so basically i have to develop a game, using django server and javascript for the client. i want the django server to update all the connected clients thats the state of the game has change.. thats why i need my server to push the info the all the clients when he needs to

psychok7

unread,
Apr 24, 2012, 8:46:57 AM4/24/12
to django...@googlegroups.com
i found  django-push server  and  django-push

can anyone tell me if they are very differente, and wich one is easier (and good) to use?

On Tuesday, April 24, 2012 12:14:17 PM UTC+1, psychok7 wrote:

Mike Ryan

unread,
Apr 24, 2012, 9:17:11 AM4/24/12
to Django users
The vague, open-ended nature of your questions gives me the impression
that you are trying to get the group to do most of the hard work for
you.

Tom's suggestion is right - Pubsub definitely sounds like the way to
go for your project. The TCP protocol doesn't make any specific
reference to AJAX either, but AJAX works rather well over it
nonetheless :-)

As for the two Django packages - download and install them, try them
out, see which one fits your needs best. If you have a specific
problem with one of them and need some assistance, I'm sure people on
this list (or StackOverflow) will be happy to help.

On Apr 24, 2:46 pm, psychok7 <nun...@gmail.com> wrote:
> i found  django-*push server*  and  django-push<https://www.google.pt/search?hl=en&sa=X&ei=B6CWT9qBBsGv0QWvmJmMDg&ved...>

psychok7

unread,
Apr 24, 2012, 11:33:12 AM4/24/12
to django...@googlegroups.com
i read and tried to implement all of them with no luck then (mostly dependencies problems)

anyways i noticed i need a diferent server to try them, (with comet support in one case) and im not sure wich one is djangos default, but this one doesnt say anything about "other" servers https://bitbucket.org/cellarosi/django-push 

anyone used this one before? (i havent got it working yet though)

psychok7

unread,
Apr 24, 2012, 11:39:10 AM4/24/12
to django...@googlegroups.com
forget it thats an alpha version just noticed now.

ill give it a go with the servers..

they replace djangos default server ?? or its an addon?
Reply all
Reply to author
Forward
0 new messages