Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get started developing with Django on Cloud9?

So Cloud9 looks really cool, and you can create python files in it, but I can't figure out how to get it to run a Django project. I imported one from my github account into the IDE, but it says I need to install Django (a django.core import error) so I need to help getting going. Any Ideas? Any skeleton projects on the web that I missed that will do this?

like image 653
peterw Avatar asked Aug 29 '12 23:08

peterw


1 Answers

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
  • Access http://projectname.username.c9.io
  • Voilà!!!

I hope this helps

like image 128
Elalfer Avatar answered Oct 02 '22 03:10

Elalfer