Ask HN: What Python web programming frameworks and tools are you using?
21–30 of 46 posts
Re: Ask HN: What Python web programming frameworks and tools are you using?
#22- TextMate - Google App Engine - http://www.tipfy.org (GAE specific framework)
Re: Ask HN: What Python web programming frameworks and tools are you using?
#23GAE confuses me. How does one create a dynamic user interface? Does Django cover that? I'm trying to build a simple program that's a sort of GUI/wizard for composing SQL queries. It would be dead easy in .NET but I don't know where to start with GAE/Python. Is the idea that you build the front end in Javascript/HTML and your Python code does the processing behind the scenes? This is probably a n00b question but I'm f…
query = myModel.all().filter("property_1 =", value)
query = query.filter("property_2 =", value)
Here's a gotcha... be sure to have a space between "property_1" and "=", "property_1=" won't work (but it won't raise an error either).
Be aware that the Datastore has very limited support for querying in general, and you will certainly not have anywhere near the kind of power you are used to when composing queries in .Net with something like LINQ.
GAE is a good start if you want to learn Python, but it is a terrible platform for web development. You will find yourself stymied and frustrated by its inflexibility, the need to give up your normalized data model from Day 1, lack of referential integrity, and the awful performance compared to a real SQL database.
Oh, and the constant outages, the scheduled maintenance that borks the whole system for a week, the backup tool that takes 4 hours to run and then crashes trying to restore the backups... I have a long list :)
Re: Ask HN: What Python web programming frameworks and tools are you using?
#24GAE confuses me. How does one create a dynamic user interface? Does Django cover that? I'm trying to build a simple program that's a sort of GUI/wizard for composing SQL queries. It would be dead easy in .NET but I don't know where to start with GAE/Python. Is the idea that you build the front end in Javascript/HTML and your Python code does the processing behind the scenes? This is probably a n00b question but I'm f…
Django templates look a lot like HTML, but with special Django stuff in them. You can get the general idea from this page: http://docs.djangoproject.com/en/dev/ref/templates/builtins/
And yes, you write in JS pretty much the same stuff that you'd always write in JS.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#25GAE confuses me. How does one create a dynamic user interface? Does Django cover that? I'm trying to build a simple program that's a sort of GUI/wizard for composing SQL queries. It would be dead easy in .NET but I don't know where to start with GAE/Python. Is the idea that you build the front end in Javascript/HTML and your Python code does the processing behind the scenes? This is probably a n00b question but I'm f…
You can compose queries like this: query = myModel.all().filter("property_1 =", value) query = query.filter("property_2 =", value) Here's a gotcha... be sure to have a space between "property_1" and "=", "property_1=" won't work (but it won't raise an error either). Be aware that the Datastore has very limited support for querying in general, and you will certainly not have anywhere near the kind of power you are use…
Re: Ask HN: What Python web programming frameworks and tools are you using?
#26Re: Ask HN: What Python web programming frameworks and tools are you using?
#27Idle and Visual Studio for editing
Re: Ask HN: What Python web programming frameworks and tools are you using?
#28I'm using web.py, testing with nose, doing database work with sqlalchemy to a postgres back-end. Looking at Paste and wondering if I should be using that as well, but currently a simple apache2 mod_wsgi container is doing ok.
I deploy to Debian stable but develop on Ubuntu Lucid, which means that in order to keep myself sane I've built Python 2.6 and virtualenv packages for debian, and install all the packages I need with pip. I'm still getting my head around this, because I've not used these tools at all before.
Deployment is done by pushing to a remote git master branch, where the remote live branch is what's checked out and running.
Styling is all blueprint.css, and I'm contemplating whether to use my usual Compass workflow or not. So far it's not been needed, but I haven't pushed things very far yet.
I'm not in the sort of space where NoSQL would be an advantage, so I can't comment on it.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#29I'll probably try Flask for my next project.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#30GAE confuses me. How does one create a dynamic user interface? Does Django cover that? I'm trying to build a simple program that's a sort of GUI/wizard for composing SQL queries. It would be dead easy in .NET but I don't know where to start with GAE/Python. Is the idea that you build the front end in Javascript/HTML and your Python code does the processing behind the scenes? This is probably a n00b question but I'm f…
m=db.define_table('message',Field('body'))
def index():
return dict(form=crud.create(m),rows=db(m).select())
It runs on GAE as it is (requires the scaffolding app).