{"id":19342653,"url":"https://github.com/adamyala/modal_django_example","last_synced_at":"2026-02-18T15:01:39.737Z","repository":{"id":70105831,"uuid":"585668226","full_name":"adamyala/modal_django_example","owner":"adamyala","description":"An example of a django project deployed to modal.com","archived":false,"fork":false,"pushed_at":"2024-09-06T01:30:46.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T17:41:30.133Z","etag":null,"topics":["deployment","django","modal"],"latest_commit_sha":null,"homepage":"https://adamyala--django-example.modal.run/admin/","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/adamyala.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-05T19:05:22.000Z","updated_at":"2024-09-06T01:30:49.000Z","dependencies_parsed_at":"2024-11-10T03:35:52.350Z","dependency_job_id":"fd7f8d22-ddbd-44b7-944a-5cff223533e4","html_url":"https://github.com/adamyala/modal_django_example","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/adamyala%2Fmodal_django_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamyala%2Fmodal_django_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamyala%2Fmodal_django_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamyala%2Fmodal_django_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamyala","download_url":"https://codeload.github.com/adamyala/modal_django_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644692,"owners_count":21138611,"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":["deployment","django","modal"],"created_at":"2024-11-10T03:35:49.812Z","updated_at":"2025-10-11T19:11:06.943Z","avatar_url":"https://github.com/adamyala.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modal django example\n\n## Installation and local server\n\n### Run using django tooling\n\n```shell\n# activate your python virtual environment\npip install -r requirements.txt\npython manage.py migrate\npython manage.py runserver\n```\n\n### Run using modal tooling\n\n```shell\nmodal serve config/modal_wsgi.py\n```\n\n## Deployment\n\n```shell\n# activate your python virtual environment\n\n# create environment variables\n# you only have to create secrets once per project\n# get a db url before this step. i like elephantsql.com for free hobby dbs\nmodal secret create demo-secrets DATABASE_URL=\u003cdatabase url\u003e SECRET_KEY=\u003ca long random string\u003e\n# collect static files locally to be pushed\npython manage.py collectstatic --no-input\n# deploy web endpoint\nmodal deploy config/modal_wsgi.py\n# deploy scheduled jobs\nmodal deploy config/modal_jobs.py\n```\n\n### Modal specific files\n\n- `config/__init__.py` initializes secrets, image, and mounts used for modal\n- `config/modal_settings.py` sets remote `SECRET_KEY` variable and connects to remote postgres database\n- `config/modal_wsgi.py` wsgi entry point for web endpoint\n- `config/modal_jobs.py` calls django command to run scheduled jobs\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamyala%2Fmodal_django_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamyala%2Fmodal_django_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamyala%2Fmodal_django_example/lists"}