~~ This article is mainly a memo for building your own Django development environment, so please understand that there are many points that cannot be reached. As the title suggests, here's a summary of the steps to build a Django development environment using Docker Toolbox. ~~
I wrote it on the blog in a more understandable way, so please have a look there. URL ⇒ https://ryuusan.com/django2/
Fold it here. (Don't write)
Prepare 3 files referring to Create Django development environment with Docker and perform Docker-compose up -d. This article also explains database initialization, etc., and I was very grateful.
I don't know if it's only for this environment, but for some reason it's a storm of section refused. I couldn't access [localhost: 8000](http: // localhost: 8000) or 0.0.0.0:8000. Of course, curl doesn't work either.
The solution was to access docker with the assigned IP address. In other words, I was able to access with http: //'machine IP address': 8000. If it is a default machine, it should appear when you first launch it. Also, if you want to check the IP address, it should come out if you google, so if you do not know, please try google.
I was worried about this for about 3 hours ... I hope it will benefit me in the future and someone who has fallen into a situation similar to me.
"Error: Database is uninitialized and superuser password is not specified." Encountered during docker-compose up. Solved by this article. I wonder if the postgresql password is required.