{"id":17027082,"url":"https://github.com/davish/django-flyio-template","last_synced_at":"2025-04-12T11:51:20.360Z","repository":{"id":60591918,"uuid":"544154757","full_name":"davish/django-flyio-template","owner":"davish","description":"Starter template for hosting a Django app on Fly.io","archived":false,"fork":false,"pushed_at":"2022-10-01T20:24:15.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T06:34:33.014Z","etag":null,"topics":["daphne","django","docker","flyio","poetry"],"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/davish.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":"2022-10-01T19:40:08.000Z","updated_at":"2023-12-01T03:55:29.000Z","dependencies_parsed_at":"2022-10-01T20:50:22.015Z","dependency_job_id":null,"html_url":"https://github.com/davish/django-flyio-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davish%2Fdjango-flyio-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davish%2Fdjango-flyio-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davish%2Fdjango-flyio-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davish%2Fdjango-flyio-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davish","download_url":"https://codeload.github.com/davish/django-flyio-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565001,"owners_count":21125413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["daphne","django","docker","flyio","poetry"],"created_at":"2024-10-14T07:46:00.582Z","updated_at":"2025-04-12T11:51:20.340Z","avatar_url":"https://github.com/davish.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django starter template for Fly.io\n\nThis template contains a starter Django project, Dockerfile and fly.toml config for hosting a [Django](https://www.djangoproject.com) app on [Fly.io](https://fly.io). The repository is set up as a [custom Django project template](https://docs.djangoproject.com/en/4.1/ref/django-admin/#startproject). All you'll need installed to get started is [Poetry](https://python-poetry.org) and [Docker](https://www.docker.com) for local builds.\n\nYou just need to run a few commands:\n\n```bash\n# Set up the poetry environment\n$ poetry init\n$ poetry add django dj-database-url daphne psycopg2-binary\n# Start a django project with this template.\n$ poetry run django-admin startproject \\\n    --template https://github.com/davish/django-flyio-template/archive/refs/heads/main.zip \\\n    --extension=py,toml \\\n    --name=Dockerfile \\\n    \u003cProjectName\u003e .\n\n# Launch a new Fly app.\n$ flyctl launch --copy-config --no-deploy\n# If you haven't already, configure a Postgres database in your Fly.io account.\n$ flyctl postgres create\n# Make a note of the db app name you choose.\n$ flyctl postgres attach \u003cdb-name\u003e\n# db-name should be what you selected in the previous step.\n$ flyctl secrets set DJANGO_SECRET_KEY=\u003cgenerated secret key\u003e\n```\n\nAt this point, everything is set up and ready to go. You can [add a custom user model](https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project) or make any other modifications at this point so that those changes are reflected in the first database migration and deploy.\n\nOnce you're ready for deploy:\n\n```bash\nflyctl deploy --local-only\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavish%2Fdjango-flyio-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavish%2Fdjango-flyio-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavish%2Fdjango-flyio-template/lists"}