# Issue deploying Django Digital Membership Card app on Fly.io

**URL:** <https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804>\
**Category:** Build debugging\
**Tags:** django\
**Created:** [May 5, 2026, 12:17pm UTC](https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804 "2026-05-05T12:17:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lixcy](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@lixcy](https://community.fly.io/u/lixcy)\
**Post date:** [May 5, 2026, 12:17pm UTC](https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804/1 "2026-05-05T12:17:28Z")

</div>

Hi everyone,

I’m trying to deploy a Python/Django application on [Fly.io](http://Fly.io), but I’m facing issues during the deployment process. The application is containerized using Docker and deployed using the `fly deploy` command. This project is a [Digital Membership Card](https://membershipanywhere.com/digital-membership/) software system that includes features like user authentication, member data management, and backend APIs for validating and issuing membership access.

The main problem is that the deployment fails during the Docker build stage. In some cases, the build process does not complete successfully, and in other attempts it gets stuck while creating the machine. Because of this, the application never reaches a running state on [Fly.io](http://Fly.io).

I have already verified my Dockerfile and ensured it is properly configured for a Django application. The `requirements.txt` file contains all necessary dependencies, and the `fly.toml` configuration also seems correct. The application runs fine locally using Docker, so the issue appears to be specific to the [Fly.io](http://Fly.io) deployment environment. I have also tried redeploying multiple times using `fly deploy`, but the problem still persists.

I would like to understand what could be causing this Docker build failure on [Fly.io](http://Fly.io). Are there any known limitations or common issues when deploying Django applications with Docker on [Fly.io](http://Fly.io)? Any guidance or best practices would be really helpful.

If needed, I can share my Dockerfile, fly.toml, or build logs for further debugging.

---

<div class="post-metadata">

**Author:** ![Harisnizami94](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@Harisnizami94](https://community.fly.io/u/Harisnizami94)\
**Post date:** [May 5, 2026, 1:27pm UTC](https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804/2 "2026-05-05T13:27:05Z")

</div>

Hey, happy to help with your issue but it’s hard to say without seeing the actual error, could you paste the build logs and Dockerfile?

---

<div class="post-metadata">

**Author:** ![flyio-support](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/flyio-support/32/46245_2.png) [@flyio-support](https://community.fly.io/u/flyio-support)\
**Post date:** [May 5, 2026, 4:18pm UTC](https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804/5 "2026-05-05T16:18:14Z")

</div>

Hi, Django apps build and deploy just fine on Fly. Can you share more details? your Dockerfile would be interesting, but also the full output of `fly deploy` (which will show build progress etc).  
You can also try a local Docker build to rule out issues with the build itself, not the Fly builders: `docker build --tag foo .` ought to do it.

We can probably tell you more based on this information but one thing you can shot-in-the-dark try is moving your Fly builder to a different region, do this in [Sign in to Your Account · Fly](http://fly.io/dashboard) settings → app builders. I’m fairly certain this won’t help but it’s something you could try quickly.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [May 12, 2026, 4:18pm UTC](https://community.fly.io/t/issue-deploying-django-digital-membership-card-app-on-fly-io/27804/6 "2026-05-12T16:18:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
