The Official Linux Webring is a testament to the development of The Linux Operating System. The websites affiliated with this webring all contain pages, tutorials, information, software, and more having to do directly with Linux and /or Linus Torvalds (ie. interviews).

How to setup postgresql (python-flask) app on Heroku and local machine
- 04/30/2013So I was like setting up a python web app on Heroku cloud platform and it was awesome. You don't need to break a sweat to deploy something like a ROR app but things are different when it come to micro-frameworks like Python-flask. I chose flask for the beauty and simplicity, and because I wanted to do everything myself. The app has postgres-sql as it's database backend. Deploying apps on Heroku is easy and all but there are some things which are not that easy to find in official docs and tutorials. So here we shall proceed with setting up postgres (with Python) on Heroku. Install flask-sqlalchemy and psycopg2 Since we are using python we need these libraries for accessing the services. flask-sqlalchemy is a flask extension for the infamous sqlalchemy library and we need psychopg2 to interact with the postgres itself. If you are using other language the you obviously need to use relative tools. Above libraries can be installed with pip install flask-sqlalchemy psychopg2 on your local setup. Then do pip freeze > requirements.txt This will put the newly installed libraries in requirements.txt file so they will get automagically installed on your Heroku instance when you push the code. Might need to install this on local machine to compile psycopg2 python-dev Before installing psycopg2 on your local setup, you should install python-dev tools on your local linux box. Add heroku postgres-dev addon (it provide 10k rows for free) Heroku provides the database service as an addon t...

How to setup postgresql (python-flask) app on Heroku and local machine