Running Django from Rackspace

If you’re trying to develop on rackspace using django, there are a couple things you need to do…

1. Open the port you’re intending to use (8080 in this case)

sudo iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

2. Execute python manage.py runserver the right way

python manage.py runserver [::]:8080

Finally 🙂

Send it to your .bashrc like this

echo 'alias djangoserver=\'python manage.py runserver [::]:8000\' >> ~/.bashrc

Leave a Reply

Your email address will not be published. Required fields are marked *