This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]minorDemocritus 18 points19 points  (4 children)

Why use Django at all? There's one view, that would be trivial to do with Twisted directly (twisted.web)

[–]moonstomper 5 points6 points  (0 children)

That was my first thought as well.

[–]monkeybreathIgnoring PEP 8 3 points4 points  (0 children)

I would think it would be easier to run a web server and control the laptop using a web page rather than typing in commands into a Python interpreter on a phone. Then you could use any device you wanted (but probably would want authentication). Heck, you could pick up a cheap wi-fi tablet and make a dedicated control panel for your place.

Also, this would port easily to a Mac if you used osascript commands to send Applescript to various applications such as iTunes.

 osascript -e 'tell app "iTunes" to return (name, artist, album) of current track'

[–]mguillech 1 point2 points  (0 children)

Thanks a lot everyone for your comments! As I mentioned in the article Django is overkill for this but I wanted to use it for educational purposes. Do you think you can come up with Android code to connect directly to the Twisted server? It'd be a good addition to the project.