[PYTHON] Django page released on heroku: Preparation my addictive point

https://github.com/herokaijp/devcenter/wiki/django I tried it with reference to here and was addicted to it. But,

Now I have solved it safely.

See the comments below for more details.

The following is just a memory of the contents at that time, so I'm not sure.


As for the place where I proceeded without any problem, it is completely the same as the reference page, so I will do it.

When I logged in to heroku and entered virtualenv, the first thing that went wrong was the installation of django-toolbelt.

pip install django-toolbelt

And an error.

Error: pg_config executable not found.

I couldn't help it, so I decided to try pip install one by one with Django, psycopg2, gunicorn, dj-database-url, dj-static, static that this command was trying to install.

Apparently psycopg2 cannot be installed.

When I googled, there were quite a few similar cases, but many of them were scared to implement the solution because it didn't make sense to me. I found this blog while I was looking for it. http://spiri-tua-lism.com/?p=617

Here, it seems that the method of easy_install is used instead of pip install.

When I think about it, I don't understand the difference between pip and easy at all, but it was still the most imaginable solution, so I just copied it. As a result, it was probably installed successfully. When I checked with pip freeze, psycopg2 was added properly.

So if you proceed from there again, heroku clears create and git pushes without problems.

And I came to the current addictive point.

heroku ps:scale web=1

From this command

Scaling dynos... failed ! Resource not found

This error. why? Make sure that the page you created is properly registered on heroku.

heroku list

=== My Apps thawing-shelf-8495

The name is automatically created, but it is displayed properly. Even if I google, I do not know how to deal with it, so for the time being,

heroku restart

I tried it, but it didn't change as expected. When I check the log, it looks like this.

heroku logs

2013-12-21T15:32:35.111156+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=thawing-shelf-8495.herokuapp.com fwd="220.1.64.3" dyno= connect= service= status=503 bytes=

It seems that the items after dyno are empty, but this is ...?

Recommended Posts

Django page released on heroku: Preparation my addictive point
Publish DJango page on heroku: Practice
A memo when Django was released on VPS (preparation)
python + django + scikit-learn + mecab (1) on heroku
Try Ajax on the Django page
python + django + scikit-learn + mecab (2) on heroku
DJango memo: From the beginning (using the management screen) my addictive point
Django blog on heroku: login implementation
Deploy Django api on heroku (personal note)
Deploy the Django app on Heroku [Part 2]
Django Tutorial (Blog App Creation) ① --Preparation, Top Page Creation
Publish django project developed in Cloud9 on heroku