Trying to set Django and postgreSQL on Heroku

I'm trying to follow the Heroku tutorial on deploying Django applications:

Getting Started with Django on Heroku

I'm able to run most of it without problems, but when it comes to synching the postgreSQL database I'm getting the following message:

psycopg2.OperationalError: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I've tried promoting databases, seting the HOST to /tmp, modifying the postgresql.conf, and many other stuff I found searching around without success

I'm working on MB-Pro, Mac OS 10.7 (Lion), and read in some places that this OS was giving developers some headache when it comes to postgre. Did anyone have this problem on OS 10.7, and had it fixed after updating to 10.8? I'm considering updating in case it solves the problem.

Thank's in advance.

EDIT:

The command I'm trying to run is: heroku run python manage.py syncdb

EDIT: I forgot to delete the DATABASE definition that was already defined on the file.

Answers


I made use of the PostgresApp to help with running Postgres on my Mac and then in a terminal ran;

psql -h localhost

I forgot to delete the DATABASE definition that was already defined on the file. It's working now.


Need Your Help

Updating Solr configuration to search on all fields

php solr

Can anyone advise me on how to search Solr on all fields?

OpenGL functions undefined with glew

c++ windows visual-studio opengl glew

So, I'm trying to use glew, and have this weird problem, where all openGL functions are undefined, and produce LNK2019. All openGL constants(like GL_TRUE) are defined and work, and glews own