Swampdragon is a real time web application framework built with Django and Python.
Questions tagged [swampdragon]
17 questions
3
votes
0 answers
Deploying SwampDragon on Apache
I am using Apache with mod_wsgi to run django server in production.The blog here describes how to deploy SwampDragon on NGNIX. There's issue here which discusses a bit about how to deploy SwampDragon on Apache but its not very clear. How can I…

Ashish Gupta
- 2,574
- 2
- 29
- 58
3
votes
2 answers
Socketing for a Real-Time Django Application
I'm trying to assess the advantages and disadvantages of implementing a Django application with real time capabilities with Socket.io versus Swamp Dragon. I understand that Socket has a much larger developer network and some good documentation, but…

ilkahnate
- 621
- 3
- 8
2
votes
1 answer
Publish to specific channel/Group
I am looking into the swampdragon chat_example. In the router.py as per documentation get_subscription_channel gives channel name.
When I tried to change the retrun value it still works.
How can I limit the messages to specific group/channel. What…

Wickkiey
- 4,446
- 2
- 39
- 46
2
votes
0 answers
Deploy SwampDragon with Nginx, Supervisor and Django
I have deployed my application in Linode. But for testing SD I used a pc as server in my local network where I have running my application. I'd like to share my Nginx and Supervisor config if you could give me some advice if it is right or I've made…

Gocht
- 9,924
- 3
- 42
- 81
2
votes
1 answer
How to create a model with foreign keys with SwampDragon?
I'm creating a chat demo using SwampDragon and I'm unsure how to create a model with related fields.
Using the code below, an error occurs each time I call the createMessage function in javascript. The only error I receive is from the websocket…

Ashley 'CptLemming' Wilson
- 8,686
- 2
- 32
- 36
1
vote
1 answer
How can I deploy a django+swampdragon realtime chatapp on heroku?
A simple django chatapp with swampdragon runs perfectly locally. But when I try to deploy it on heroku it shows "Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch" in the log. In the proc file I added "web:…

Asif Mahmud
- 23
- 5
1
vote
1 answer
Swampdragon settings.js
Where I can find this file?
I tried to use this tutorial and just copy paste most of all examples. But when I'm trying to launch this app, I have an error:
Failed to load resource: the server responded with a status of 404 (Not Found)
Server is…

NONAMA
- 503
- 1
- 9
- 21
1
vote
0 answers
ERROR:tornado.general:WebSocket ... Swampdragon : DoesNotExist: matching query does not exist
I followed the first tutorial at : http://swampdragon.net/tutorial/part-1-here-be-dragons-and-thats-a-good-thing/
I work with Docker. I had to open ports 9999 and 6379 and run like this :
sudo docker run --rm -ti -p 8000:8000 -p 6379:6379 -p…

Slaan
- 152
- 1
- 8
1
vote
1 answer
Swampdragon - Issues when deploying in webfaction
I have installed swampdragon in webfaction. According to webfaction documentation (https://docs.webfaction.com/software/custom.html?highlight=custom#creating-a-custom-application) to use port I have to create a custom application.
created custom…

Wickkiey
- 4,446
- 2
- 39
- 46
1
vote
2 answers
real time notification app DateTimeField issue
I wrote a notification app using swampdragon. Unfortunately, pub_date variable includes microseconds which I don't want it to be there. How can I format it like 'dd-MM-yyyy HH:mm:ss' or like in the admin site(a.m p.m version)?
My controller.js:
var…

kings856
- 73
- 10
1
vote
1 answer
swampdragon how to import js file?
I'm following the swampdragon tutorial.
I've finish it, copy and paste everythings, but when I'm on http://localhost:8000/, I got this error in the javascript console.
GET http://localhost:8000/swampdragon/js/dist/datamapper.js
GET…

BoumTAC
- 3,531
- 6
- 32
- 44
1
vote
1 answer
Does SwampDragon do async database calls?
SwampDragon seems like a nice library, tightly coupled with Django. Uses Tornado's ioloop to handle websockets.
But does it do async database queries, or sync (blocking) queries? Postgres or MySQL. How would one go about handling computationally…

frnhr
- 12,354
- 9
- 63
- 90
0
votes
1 answer
Django SwampDragon : KeyError 'channel'
I have searched everywhere for a solution on this and after a long time searching I still have no answer.
I am using Django 1.7 over Swampdragon 0.4.2. I get this exception every random period of time.
WebSocket
Traceback (most recent call last):
…

Alex Prober
- 11
- 3
0
votes
1 answer
Swampdragon: how to determine a channel the message was published to?
In my project backend sends a lot of messages published to different channels.
I can see from browser console the message arrived has channel property.
But the problem is a callback passed to swampdragon.onChannelMessage doesn't get that channel…

Alexey
- 1,257
- 7
- 13
0
votes
1 answer
swampdragon objects not ordering properly
I have a real time app, and this app provides me announcements from admin-site. Unfortunately, I could not handle the ordering issue which is new info must be on the top of the list. My app gives me the bottom of the list. After refreshing it fixes…

kings856
- 73
- 10