{"id":21983080,"url":"https://github.com/arsho/docker_django_localization","last_synced_at":"2026-04-08T18:31:47.084Z","repository":{"id":53671041,"uuid":"121253266","full_name":"arsho/docker_django_localization","owner":"arsho","description":"Localization of Django \u0026 MySQL Application inside Docker (Bonus: PHPMyAdmin)","archived":false,"fork":false,"pushed_at":"2021-03-19T21:52:58.000Z","size":77,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T01:33:35.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsho.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T14:00:15.000Z","updated_at":"2020-04-13T09:42:04.000Z","dependencies_parsed_at":"2022-09-10T23:11:44.305Z","dependency_job_id":null,"html_url":"https://github.com/arsho/docker_django_localization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arsho/docker_django_localization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Fdocker_django_localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Fdocker_django_localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Fdocker_django_localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Fdocker_django_localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsho","download_url":"https://codeload.github.com/arsho/docker_django_localization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsho%2Fdocker_django_localization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31568611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T17:34:22.938Z","updated_at":"2026-04-08T18:31:47.054Z","avatar_url":"https://github.com/arsho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Localization of Django \u0026 MySQL Application using Docker (Bonus: PHPMyAdmin)\n===========================================================================\n[DEMO](screenshot/localization.png)\n\n### Prerequisite\n* Ensure that you already installed Docker in your machine. To learn more about installation: [follow this gist](https://gist.github.com/arsho/6249e3f0fc1d966d115c34718e1a8a0a#file-docker_installation_ubuntu_16-04-md)\n* Ensure that you already installed Docker Compose in your machine. To learn more about installation: [follow this gist](https://gist.github.com/arsho/6249e3f0fc1d966d115c34718e1a8a0a#file-docker_compose_ubuntu_16-04-md)\n\n### Environment\n\n* \u003cb\u003e Operating System\u003c/b\u003e : Ubuntu 16.04 LTS (64-bit)\n* \u003cb\u003e Python (Docker)\u003c/b\u003e : 2.7 (64-bit)\n\n### Running Django app with MySQL database inside Docker\nThe following steps showed the step by step guideline. \n\n#### Create Project Directory\n\nFor separating the application from other projects let's first create a directory and move to that:\n```\nmkdir docker_django_localization\ncd docker_django_localization\n```\n\n#### Create Dockerfile\n\nCreate a `Dockerfile` inside the project directory\n\n#### Create requirements.txt\n\nCreate a `requirements.txt` file inside the project directory\n\n#### Create Docker Compose Configuration File\n\nCreate a `docker-compose.yml` inside the project directory\n\n\n#### Build Docker Compose\nIn this step we are going to build docker compose:\n```\ndocker-compose build\n```\nThe execution of the command will take some time based on internet connection speed.\nIf you failed to build everything succesfully retry several times as network connection sometimes cause the error.\n\nCheck if the instances are running:\n```\ndocker-compose up -d\n```\nPress `CTRL-C` to stop the instances for now.\n\nRun the project:\n\n```\ndocker-compose run web python manage.py makemigrations\ndocker-compose run web python manage.py migrate\ndocker-compose run web python manage.py createsuperuser\ndocker-compose run web python manage.py runserver\n```\n\n#### Access the web app\n\nOpen [http://0.0.0.0:8000/](http://0.0.0.0:8000/) and see the running web application\n\n#### (Bonus) Access the phpmyadmin\n\nOpen [http://0.0.0.0:8082/](http://0.0.0.0:8082/) and see the running `PHPMyAdmin`.\nUse \n```\nUser: root\nPassword: mypassword\n```\nand keep the host empty.\n\n#### Referencese\n\n* [Start Django project with Docker](http://mmorejon.github.io/en/blog/start-django-project-with-docker/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsho%2Fdocker_django_localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsho%2Fdocker_django_localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsho%2Fdocker_django_localization/lists"}