Created
March 7, 2011 20:08
-
-
Save alexandru/859106 to your computer and use it in GitHub Desktop.
how I solved the rabbitmq connection error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is related to (reported by Scott, also happened to me): | |
# https://gist.github.com/12420d9060341b10e8cc | |
# | |
# Guys, syncdb / migrate should in no way be dependent on any server other than PostgreSQL. | |
# | |
# Secondly, this method requires access to a port that's not the standard RabbitMQ port. | |
# I have no idea what port 61613 should be doing, or how to set it up. | |
# | |
# And even though I have started RabbitMq and it is properly set, it still wouldn't work. | |
# Also, launch_safe is awful to get running - it's giving me lots of errors related to Nginx now. | |
# | |
# It's also a chicken-egg problem, it's natural that "syncdb" is first, "launch_safe" second. | |
# | |
def send_message(topic, data): | |
return # yeah baby | |
conn = stomp.Connection([(settings.BROKER_HOST,61613)], | |
settings.BROKER_USER, settings.BROKER_PASSWORD) | |
conn.start() | |
conn.connect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment