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/django-admin.py startproject myproject
Start dev server: python ./myproject/manage.py runserver $IP:$PORT
Let's get started!
update: users report us there is a nice and useful article about Django and C9 here: http://www.andreagrandi.it/2013/01/05/using-cloud9-ide-to-develop-django-applications/
Does this still work? Every time I try to easy_install Django, it hangs at the setup.py step and doesn't seem to do anything.
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 django-admin.py. Weird that it freezes the terminal, though.
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/manage.py" but it gives me this:
I have found a trick for the freeze of the terminal you can use tmux !
Create a .sh file with
#!/bin/bashtmux new-session -d -n DjangoServerWindow -s DjangoServer 'python ./manage.py 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
Support Software by Zendesk