Skip to content

Instantly share code, notes, and snippets.

@huogerac
Created April 24, 2012 03:06
Show Gist options
  • Save huogerac/2475868 to your computer and use it in GitHub Desktop.
Save huogerac/2475868 to your computer and use it in GitHub Desktop.
Procedimento para instalar Postgres
SERVER
------
sudo apt-get install libpq-dev python-dev
sudo apt-get install postgresql
INTERFACE ADMINISTRATIVA
------------------------
sudo apt-get install pgadmin3
CONFIGURAR USUÁRIO
-------------------------------
sudo -u postgres psql postgres
\password postgres
ou para criar outro usuário:
sudo -u postgres createuser --superuser $USER
CRIAR DATABASE
--------------
sudo -u postgres createdb [database]
INSTALAÇÃO DO DRIVER NO DJANGO
------------------------------
pip install psycopg2
referência:
https://help.ubuntu.com/community/PostgreSQL
http://www.saltycrane.com/blog/2009/07/using-psycopg2-virtualenv-ubuntu-jaunty/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment