LoginSignup
2
1

More than 5 years have passed since last update.

django heroku デプロイ後 おっちょこちょい

Posted at

django girlsのチュートリアル通りにデプロイをした後に、コンタクトフォームから何かを送信すると「internal server error 500」が。

なんでやろ〜って考えてたらおっちょこちょい仙人登場。

djangoはデフォルトでsplite3をデータベースとして使うようになっているけど、
herokuでは、postgresqlを使うのである。

なのでデプロイ後に、
$ heroku run python manage.py migrate
をする必要が。

管理者サイト(admin)に入るのであれば再度
$ heroku run python manage.py createsuperuser
をする必要があるんです。

忘れないように、俺。

以上おっちょこちょい劇場でした。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1