On Wed, Mar 9, 2016 at 11:06 AM, Peter Farrell <funcalcu...@gmail.com> wrote:
> Hi, Kirby, > > Thanks for the info about Cloud 9. My Python projects don't run, and all I > get is the message on the new page: > >> "It worked! >> Congratulations on your first Django-powered page. >> Of course, you haven't actually done any work yet. Next, start your first >> app by running python manage.py startapp [app_label]." > > > So I downloaded the mfg.py file and put in the ip and port that Cloud9 > says my project is running on. I even started a terminal to put in the > above code but what is the name of the app? The python file I want to run? > > Good morning Peter -- # <--- still before noon in my timezone If you just pull up mfg.py (mini-flask game) in your Cloud9 editor and hit run, it'll run. It's not a Django application. But before you do that: $ sudo pip install flask # <--- this just worked for me Just to cut 'n paste from my still-open-from-some-hours-ago Cloud9 terminal: thekirbster:~/workspace (master) $ sudo pip install flask Downloading/unpacking flask Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded Running setup.py (path:/tmp/pip_build_root/flask/setup.py) egg_info for package flask warning: no files found matching '*' under... and so on (lots of noise). Also there's another dependency: chessgame.py # <--- you see it imported up top https://github.com/4dsolutions/Python5/blob/master/chessgame.py Lest you expect too much, all this module is used for is to render the chess board and then respond to questions about what's where. When used standalone at the console, there's actually a player1-player2-player1... input mode where each player gets to move pieces using primitive tuple addressing with no validation the move is legal. But in server mode, i.e. when this module is used by mfg.py, it doesn't even do that. That's the only other file you should need. So yeah, bottom line: it's not Django. Kirby > Looking forward to hearing from you, > > Peter > > <snip> >> >> Here's the source code for what's running @ Cloud9: >> >> https://github.com/4dsolutions/Python5/blob/master/mfg.py >> >> with this change to the final boot section: >> >> if __name__ == '__main__': >> app.run( >> debug = True, >> host = os.getenv("IP"), >> port = int(os.getenv("PORT"))) >> >> >> Kirby >> >> >> >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://mail.python.org/pipermail/edu-sig/attachments/20160309/48fa8a27/attachment-0001.html >> > >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Edu-sig mailing list >> Edu-sig@python.org >> https://mail.python.org/mailman/listinfo/edu-sig >> >> >> ------------------------------ >> >> End of Edu-sig Digest, Vol 152, Issue 7 >> *************************************** >> > > > _______________________________________________ > Edu-sig mailing list > Edu-sig@python.org > https://mail.python.org/mailman/listinfo/edu-sig > >
_______________________________________________ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig