Forums/Using Cloud9 IDE/Tips and Tricks

Django Development in C9

Detmar ter Huurne
posted this on August 09, 2012 12:41

After some research and looking for an answer on different blogs and sites I finally found a solution:

Create a new workspace Execute: easy_install django to install Django

Create new Django project: python ./../bin/ startproject myproject

Start dev server: python ./myproject/ runserver $IP:$PORT


Let's get started!


update: users report us there is a nice and useful article about Django and C9 here:



User photo
澄 沈

thank you!

February 17, 2013 05:01
User photo
Travis Chapman

Does this still work? Every time I try to easy_install Django, it hangs at the step and doesn't seem to do anything.

February 19, 2013 20:47
User photo
Travis Chapman

Add.: Turns out I was just being impatient; while the command froze up my tab, a quick refresh worked fine and I was able to use Weird that it freezes the terminal, though.

February 19, 2013 20:53
User photo
Erik Marencik

did anyone manage to run this via button RUN ? in run I add to cmd line args runserver $OPENSHIFT_INTERNAL_IP:$PORT to path "./mysite/" but it gives me this:

CommandError: "$OPENSHIFT_INTERNAL_IP:$PORT" is not a valid port number or address:port pair.
any suggestions?
April 09, 2013 18:27
User photo
Brice Gaulupeau

I have found a trick for the freeze of the terminal you can use tmux !


Create a .sh file with 

tmux new-session -d -n DjangoServerWindow -s DjangoServer 'python ./ runserver $IP:$PORT'


and run the file, the server should be running on $IP:$PORT.

If you need to see the server, use "tmux attach" and you can see what Django outputs 


Have fun 

May 23, 2013 16:28