So, what tools, databases, web servers and frameworks are you using for your latest Python web application projects? Or, if you've abandoned Python, what language have you moved to, and why?
Ask HN: What Python web programming frameworks and tools are you using?
1–10 of 16 posts
Re: Ask HN: What Python web programming frameworks and tools are you using?
#2With those three tools I can create a web app with basic functionality with few lines of code, like a prototype. For example:
from datetime import datetime
from bottle import get, post, request, run, template, redirect
import dataset
db = dataset.connect('sqlite:///database.sqlite')
entries_table = db['entries']
@get('/')
def show_entries():
entries = entries_table.all()
entries_sorted = sorted(entries, reverse=True)
return template('entries', entries=entries_sorted)
@post('/add')
def add_entry()
entry = request.forms.get('entry')
entries_table.insert(dict(
text=entry,
created_by=datatime.utcnow(),
))
return redirect('/')
run(reloader=True, debug=True)
- [0] https://bottlepy.org/docs/dev/- [1] https://dataset.readthedocs.io/en/latest/
- [3] https://docs.pipenv.org/
Edit: formatting.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#3Re: Ask HN: What Python web programming frameworks and tools are you using?
#4Framework:
- A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask.
- Mako for templating.
Databases:
- PostgreSQL for primary data storage.
- Solr for full-text search.
- Redis for cached data.
Servers:
- Nginx for the front-end server.
- uWSGI for the application server (bridge between Nginx and Django). I'd like to try Nginx Unit.
Browser-side:
- jQuery for functionality.
- Bootstrap for base styles.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#5For websites and internal web applications I use the following. Framework: - A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask. - Mako for templating. Databases: - PostgreSQL for primary data storage. - Solr for full-text search. - Redis for cached data. Servers: - Nginx for the front-end server. - uWSGI for the application server (bridge between Nginx a…
Re: Ask HN: What Python web programming frameworks and tools are you using?
#6Re: Ask HN: What Python web programming frameworks and tools are you using?
#7For websites and internal web applications I use the following. Framework: - A bastardized modification of Django (bad choice, but I'm stuck with it). I'd really like to try Pyramid or Flask. - Mako for templating. Databases: - PostgreSQL for primary data storage. - Solr for full-text search. - Redis for cached data. Servers: - Nginx for the front-end server. - uWSGI for the application server (bridge between Nginx a…
Flask is really cool. It has a great community and a package for everything you'd need.
Re: Ask HN: What Python web programming frameworks and tools are you using?
#8Re: Ask HN: What Python web programming frameworks and tools are you using?
#9I write all my database commands in raw SQL rather than using an ORM, primarily because it's far quicker for me to write slightly more complex SQL than manipulate objects.