Django開発環境構築

Django開発環境構築メモ

色々調べた結果、下記のブログが非常に分かりやすかったので、その通りに実行することに。 Ubuntu 14.04 で Django アプリケーションを Heroku にデプロイする手順 | dreamin'up4u

で、pip install django-toolbeltを実行した時点で、エラーが返ってきた。

./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory
#include <Python.h>
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1"

psycopgが無いと言われているので、psycopgのインストールをする事に。

インストール方法は下記ブログに記載されている。

H2 Database EngineにPythonから接続する(psycopg使用) - Symfoware

で無事に解決した。