{"id":28739813,"url":"https://github.com/codingforentrepreneurs/serverless-django","last_synced_at":"2025-10-29T12:04:06.000Z","repository":{"id":52804963,"uuid":"280206337","full_name":"codingforentrepreneurs/Serverless-Django","owner":"codingforentrepreneurs","description":"Learn to build and deploy a Serverless Django application to Google Cloud Run with Cloud SQL, Cloud Build, \u0026 Docker.","archived":false,"fork":false,"pushed_at":"2021-04-18T20:37:57.000Z","size":30,"stargazers_count":45,"open_issues_count":0,"forks_count":28,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-10-04T22:41:49.814Z","etag":null,"topics":["cloud-build","cloud-run","cloud-sql","cloud-sql-proxy","django","docker","gcloud","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingforentrepreneurs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-16T16:42:00.000Z","updated_at":"2025-02-21T00:23:50.000Z","dependencies_parsed_at":"2022-08-23T07:00:36.613Z","dependency_job_id":null,"html_url":"https://github.com/codingforentrepreneurs/Serverless-Django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingforentrepreneurs/Serverless-Django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2FServerless-Django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2FServerless-Django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2FServerless-Django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2FServerless-Django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingforentrepreneurs","download_url":"https://codeload.github.com/codingforentrepreneurs/Serverless-Django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingforentrepreneurs%2FServerless-Django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281617488,"owners_count":26531925,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloud-build","cloud-run","cloud-sql","cloud-sql-proxy","django","docker","gcloud","python"],"created_at":"2025-06-16T06:10:56.775Z","updated_at":"2025-10-29T12:04:05.957Z","avatar_url":"https://github.com/codingforentrepreneurs.png","language":"Python","readme":"[![Serverless Django Logo](https://static.codingforentrepreneurs.com/media/projects/serverless-django/images/share/Serverless_Django_with_GCloud_-_Share.jpg)](https://www.codingforentrepreneurs.com/projects/serverless-django)\n\n# Serverless Django\n[Learn](https://www.codingforentrepreneurs.com/projects/serverless-django) to build and deploy a Serverless Django application to Google Cloud Run with Cloud SQL, Cloud Build, \u0026amp; Docker.\n\n### Requirements\n- Python XP -\u003e found [here](https://cfe.sh/projects/30-days-python-38) \n\n- Django XP -\u003e found [here](https://cfe.sh/t/try-django)\n\n- Google SDK \u0026 CLI Installed via [This guide Guide](https://kirr.co/03zjn0)\n\n### Recommended\n- [Serverless Python Web App Tutorial](https://kirr.co/blqkyw)\n- [Docker Desktop](https://www.docker.com/products/docker-desktop)\n\n\n### Reference \n- [Serverless Django Guide](https://kirr.co/9nirqh)\n- [Staging Django Guide](https://kirr.co/f0ndg6)\n- [Serverless Django Tutorial](https://kirr.co/zqwkw6)\n\n\n### To use this code\n\n**1. Clone**\n```\ngit clone https://github.com/codingforentrepreneurs/Serverless-Django .\n```\n\n**2. Create Virtual Environment**\n```bash\ncd supercharged\npython3.8 -m venv .\n```\n\u003e Use Any version of Python \u003e= 3.6\n\n**3. Activate virtual environment**\nMac/Linux\n```\nsource bin/activate\n```\n\nWindows:\n```\n.\\Scripts\\activate\n```\n\n\u003e If using **pipenv**, run `pipenv shell` \u0026\u0026 `pipenv install`\n\n\n**4. Install requirements**\n\n```\npip install -r requirements.txt\n```\n\n**5. Run locally**\nMac/Linux\n```\nchmod +x ./scripts/local.sh\n./scripts/local.sh\n```\n\nWindows\n```powershell\n.\\scripts\\local.ps1\n```\n\n\n### Lesson Code Reference\n[3 - Virtual Environment with Pipenv \u0026 VSCode Workspace](../../tree/e763f8433cfbec95b36c913b895c8abf5d126379/)\n\n[4 - Staging Django for Production](../../tree/6e725d7c1925f6b5c5acbfe62fa2365f0ce88265/)\n\n[5 - Home Page View including Settings Variables](../../tree/69bd382712a1b4e9549df8ec4d03f562ef60273b/)\n\n[6 - WSGI with Gurnicorn or Waitress](../../tree/bef3f532be62f0b7dae0c274071a003a253cc8c8/)\n\n[8 - Install the Cloud SQL Proxy](../../tree/3a9ebdd3f58ea26a48c8f3d61e8762b092e08e8f/)\n\n[9 - Database Service Account directory holder](../../tree/e9e1d81671b9ca4593ca6e67cfafa6a614a67960/)\n\n[10 - Run Cloud SQL Proxy with Service Account](../../tree/b2d8ab451f9947d7eb9083d746650b87df4abf01/)\n\n[11 - Connect Django \u0026 Proxy Database](../../tree/0fcb9120f40577e8156d12ff967af7c93a609450/)\n\n[12 - Dockerfile, Docker Build, \u0026 Docker Run](../../tree/ef83da89db128e38ef236ed5ebdbba4f2fec7c26/)\n\n[13 - Docker Build \u0026 Push To GCloud Container Registry](../../tree/b3809c468dedca85461b88e75584627eb948987c/)\n\n[14 - Google Cloud Build](../../tree/a62632df2c2b1dc42618f48db67317796bc0a079/)\n\n[15 - Deploy to Cloud Run](../../tree/b63014aaef33d234df4391a7c1d47ca4dfb4bd9e/)\n\n[16 - Make Changes, Build, \u0026 Deploy](../../tree/f8dc89c362621285806e29270013ccdecae16694/)\n\n[17 - Production Database on Cloud Run](../../tree/c07898ae0df4431aa8449a9c05655bb8020fcd90/)\n\n[18 - Thank you and next steps](../../tree/a31522692924576b82fda5c023a49cd750e23209/)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingforentrepreneurs%2Fserverless-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingforentrepreneurs%2Fserverless-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingforentrepreneurs%2Fserverless-django/lists"}