# Deployment

**URL:** https://forum.djangoproject.com/c/users/deployment/24.md?page=1

[Latest](https://forum.djangoproject.com/latest.md) · [Categories](https://forum.djangoproject.com/categories.md) · [Tags](https://forum.djangoproject.com/tags.md)

**Page:** 2

---

## [Files created in /tmp (linux). Where are they ?](https://forum.djangoproject.com/t/files-created-in-tmp-linux-where-are-they/44051)

<div class="topic-metadata">

**Author:** [@Thierry-Dumont](https://forum.djangoproject.com/u/Thierry-Dumont)\
**Replies:** 11\
**Last updated:** [February 1, 2026, 6:27pm UTC](https://forum.djangoproject.com/t/files-created-in-tmp-linux-where-are-they/44051 "2026-02-01T18:27:27Z")

</div>

I am creating a file in /tmp; say /tmp/x.docx. After that using pypandoc I transform it into /tmp/x.pdf This works perfectly, but: I cannot see (ls /tmp) the files in /tmp Everything works well (I can return the pdf f…

---

## [Shared PostgreSQL DBs across 3 Django projects on Heroku](https://forum.djangoproject.com/t/shared-postgresql-dbs-across-3-django-projects-on-heroku/43952)

<div class="topic-metadata">

**Author:** [@Drone4four](https://forum.djangoproject.com/u/Drone4four)\
**Replies:** 4\
**Last updated:** [January 25, 2026, 9:36pm UTC](https://forum.djangoproject.com/t/shared-postgresql-dbs-across-3-django-projects-on-heroku/43952 "2026-01-25T21:36:52Z")

</div>

I share the same PostgreSQL DB instance across 3 different Django production projects hosted and deployed to Heroku. When I install the same Django web app package for all 3, in the Admin Dashboard for any one project, w…

---

## [How set up second Celery instance for second unrelated Django web app on the same server?](https://forum.djangoproject.com/t/how-set-up-second-celery-instance-for-second-unrelated-django-web-app-on-the-same-server/43847)

<div class="topic-metadata">

**Author:** [@cseberino](https://forum.djangoproject.com/u/cseberino)\
**Replies:** 5\
**Last updated:** [January 6, 2026, 4:52pm UTC](https://forum.djangoproject.com/t/how-set-up-second-celery-instance-for-second-unrelated-django-web-app-on-the-same-server/43847 "2026-01-06T16:52:17Z")

</div>

I successfully installed Celery for one Django web app simply by adding a tasks.py file and starting it with “python3 -m celery -A tasks worker -l INFO”. I want to start another Celery instance for another separate unr…

---

## [Average response time in django load testing](https://forum.djangoproject.com/t/average-response-time-in-django-load-testing/43852)

<div class="topic-metadata">

**Author:** [@sanjup17](https://forum.djangoproject.com/u/sanjup17)\
**Replies:** 4\
**Last updated:** [January 6, 2026, 1:46pm UTC](https://forum.djangoproject.com/t/average-response-time-in-django-load-testing/43852 "2026-01-06T13:46:03Z")

</div>

For a normal Django REST Framework, when load testing done, with 50 users and with 200 users – most of them are CRUD APIs, like profile, preferences, goal\_setting, etc how much average response time should be?? Like with…

---

## [Mobile app test](https://forum.djangoproject.com/t/mobile-app-test/43811)

<div class="topic-metadata">

**Author:** [@Abiriyi](https://forum.djangoproject.com/u/Abiriyi)\
**Replies:** 6\
**Last updated:** [December 30, 2025, 3:53pm UTC](https://forum.djangoproject.com/t/mobile-app-test/43811 "2025-12-30T15:53:52Z")

</div>

I am trying to test my mobile app using Expo Go but I am getting ‘network errors’. I am using Django and React Native. I am also using 127.0.0.1:8000 for the development settings and the client API\_URL

---

## [Static path with S3](https://forum.djangoproject.com/t/static-path-with-s3/28696)

<div class="topic-metadata">

**Author:** [@Tdo122](https://forum.djangoproject.com/u/Tdo122)\
**Replies:** 14\
**Last updated:** [December 17, 2025, 9:33am UTC](https://forum.djangoproject.com/t/static-path-with-s3/28696 "2025-12-17T09:33:32Z")

</div>

Hi everyone, I’m currently deploying my django app and want to store my static and medias files on S3. I have the following configuration in settings.py, which works perfectly locally : STATIC\_URL = ‘/static/’ STATICF…

---

## [Non-Celery Based Background Workers?](https://forum.djangoproject.com/t/non-celery-based-background-workers/43627)

<div class="topic-metadata">

**Author:** [@cole-loma](https://forum.djangoproject.com/u/cole-loma)\
**Replies:** 4\
**Last updated:** [December 5, 2025, 10:01pm UTC](https://forum.djangoproject.com/t/non-celery-based-background-workers/43627 "2025-12-05T22:01:09Z")

</div>

Fielding ideas/ products to use for background workers in Django outside of celery. We’ve had a lot of issues with celery and want a more managed system. We’ve migrated some of our async processing to Temporal but even t…

---

## [502 error deploying django website](https://forum.djangoproject.com/t/502-error-deploying-django-website/43601)

<div class="topic-metadata">

**Author:** [@AliRamezani](https://forum.djangoproject.com/u/AliRamezani)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 3:09am UTC](https://forum.djangoproject.com/t/502-error-deploying-django-website/43601 "2025-12-04T03:09:38Z")

</div>

i’m trying to deploy my first app on serer while trying to set all settings well but still get 502 error which cant be solved wiht all i did have no exprience using ubuntu and used some instructions found in internet a…

---

## [Projet Django en production](https://forum.djangoproject.com/t/projet-django-en-production/43570)

<div class="topic-metadata">

**Author:** [@chakool-0](https://forum.djangoproject.com/u/chakool-0)\
**Replies:** 7\
**Last updated:** [December 2, 2025, 10:42pm UTC](https://forum.djangoproject.com/t/projet-django-en-production/43570 "2025-12-02T22:42:45Z")

</div>

j ai un projet Django e-commerce en production. j ai un souci concernant les fichiers media, qui ne s’affichent pas.

---

## [Intermittent Database Connection Errors and Slow Page Loads on My Django Website](https://forum.djangoproject.com/t/intermittent-database-connection-errors-and-slow-page-loads-on-my-django-website/43391)

<div class="topic-metadata">

**Author:** [@jaindeen4](https://forum.djangoproject.com/u/jaindeen4)\
**Replies:** 2\
**Last updated:** [November 17, 2025, 7:46pm UTC](https://forum.djangoproject.com/t/intermittent-database-connection-errors-and-slow-page-loads-on-my-django-website/43391 "2025-11-17T19:46:43Z")

</div>

Hi everyone, I’m running a Django-based website that focuses on restaurant content mainly Texas Roadhouse menus, reviews, and food guides. Everything has been working great for several months, but lately, I’ve been expe…

---

## [I need help with static files not loading on cPanel.](https://forum.djangoproject.com/t/i-need-help-with-static-files-not-loading-on-cpanel/42554)

<div class="topic-metadata">

**Author:** [@AleksPR22](https://forum.djangoproject.com/u/AleksPR22)\
**Replies:** 9\
**Last updated:** [November 17, 2025, 4:53pm UTC](https://forum.djangoproject.com/t/i-need-help-with-static-files-not-loading-on-cpanel/42554 "2025-11-17T16:53:03Z")

</div>

For the past 2 days I have been trying to get apache to serve the static files but it returns an error I am using cPanel shared hosting. I do not have access to console only run script button. error from console from g…

---

## [Error 13: Permission Denied](https://forum.djangoproject.com/t/error-13-permission-denied/30232)

<div class="topic-metadata">

**Author:** [@UG-SEP](https://forum.djangoproject.com/u/UG-SEP)\
**Replies:** 10\
**Last updated:** [November 15, 2025, 1:20pm UTC](https://forum.djangoproject.com/t/error-13-permission-denied/30232 "2025-11-15T13:20:47Z")

</div>

Hey everyone, I encountered an issue at the production level Whenever I am trying to update/add a model that contains media files it shows error 13: Permission denied First I checked whether I have the read/write a…

---

## [Can't connect to Postgres from Django using a connection service file (on Windows)](https://forum.djangoproject.com/t/cant-connect-to-postgres-from-django-using-a-connection-service-file-on-windows/12510)

<div class="topic-metadata">

**Author:** [@debarto](https://forum.djangoproject.com/u/debarto)\
**Replies:** 14\
**Last updated:** [October 26, 2025, 5:20pm UTC](https://forum.djangoproject.com/t/cant-connect-to-postgres-from-django-using-a-connection-service-file-on-windows/12510 "2025-10-26T17:20:16Z")

</div>

I posted this on SA but haven’t received any answers yet. I have successfully set up Django and Postgres, and I can get them to work together when I put all of the Postgres parameters in the Django settings.py file. How…

---

## [Configure PGBouncer with django](https://forum.djangoproject.com/t/configure-pgbouncer-with-django/43161)

<div class="topic-metadata">

**Author:** [@abbasj](https://forum.djangoproject.com/u/abbasj)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 4:08pm UTC](https://forum.djangoproject.com/t/configure-pgbouncer-with-django/43161 "2025-10-13T16:08:04Z")

</div>

Hello! I have a website up and running but keep getting “OperationalError“ in Sentry. I have read the Heroku documentation and it seem that configuring a PGBouncer would help me a lot. Here are the articles that I have…

---

## [Hosted Media Files get cleared after i redeploy github repo?](https://forum.djangoproject.com/t/hosted-media-files-get-cleared-after-i-redeploy-github-repo/17938)

<div class="topic-metadata">

**Author:** [@desphixs](https://forum.djangoproject.com/u/desphixs)\
**Replies:** 4\
**Last updated:** [October 6, 2025, 8:54pm UTC](https://forum.djangoproject.com/t/hosted-media-files-get-cleared-after-i-redeploy-github-repo/17938 "2025-10-06T20:54:04Z")

</div>

I hosted my database on railway, when i upload images from my admin section, it shows up in the designated place and everything works fine. The problem starts when i make a change to the github repo and redeploy, all the…

---

## [Auto-increment runserver port when 8000 is already running](https://forum.djangoproject.com/t/auto-increment-runserver-port-when-8000-is-already-running/43004)

<div class="topic-metadata">

**Author:** [@Mobin-Ghaemi](https://forum.djangoproject.com/u/Mobin-Ghaemi)\
**Replies:** 11\
**Last updated:** [October 3, 2025, 3:38pm UTC](https://forum.djangoproject.com/t/auto-increment-runserver-port-when-8000-is-already-running/43004 "2025-10-03T15:38:43Z")

</div>

Hi, At the moment, when we run: python manage.py runserver Django always tries to bind to port 8000. In practice, if port 8000 is already running another Django project, a second runserver command doesn’t raise an e…

---

## [Sites Framework and Deployment](https://forum.djangoproject.com/t/sites-framework-and-deployment/43059)

<div class="topic-metadata">

**Author:** [@nburt](https://forum.djangoproject.com/u/nburt)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 8:41pm UTC](https://forum.djangoproject.com/t/sites-framework-and-deployment/43059 "2025-10-02T20:41:21Z")

</div>

Hi - I’m working on a project to add the ability to create different frontends which share the same Django admin backend. Each frontend might have a different theme, query different models, have a different color scheme,…

---

## [How do you usually handle log aggregation in Django without slowing down requests?](https://forum.djangoproject.com/t/how-do-you-usually-handle-log-aggregation-in-django-without-slowing-down-requests/43038)

<div class="topic-metadata">

**Author:** [@enamyaovi](https://forum.djangoproject.com/u/enamyaovi)\
**Replies:** 4\
**Last updated:** [October 1, 2025, 10:24am UTC](https://forum.djangoproject.com/t/how-do-you-usually-handle-log-aggregation-in-django-without-slowing-down-requests/43038 "2025-10-01T10:24:52Z")

</div>

I’ve been learning more about logging in Django/Python, and I’m stuck on the best way to approach log aggregation in production. From what I understand, if I use something like logtail-python (or any handler that ships l…

---

## [Migrate command in deployment.](https://forum.djangoproject.com/t/migrate-command-in-deployment/42991)

<div class="topic-metadata">

**Author:** [@harryghgim](https://forum.djangoproject.com/u/harryghgim)\
**Replies:** 6\
**Last updated:** [September 29, 2025, 2:34am UTC](https://forum.djangoproject.com/t/migrate-command-in-deployment/42991 "2025-09-29T02:34:21Z")

</div>

Hi django fellows. I’m wondering if there is any caveat when adding migrate command in deployment. My company uses aws ecs for django project deployement. We uses gunicorn for running app in production, but in that pro…

---

## [django-vite static assets being served but not loading on an Nginx deployment](https://forum.djangoproject.com/t/django-vite-static-assets-being-served-but-not-loading-on-an-nginx-deployment/42961)

<div class="topic-metadata">

**Author:** [@juanvergara3](https://forum.djangoproject.com/u/juanvergara3)\
**Replies:** 0\
**Last updated:** [September 23, 2025, 4:21pm UTC](https://forum.djangoproject.com/t/django-vite-static-assets-being-served-but-not-loading-on-an-nginx-deployment/42961 "2025-09-23T16:21:57Z")

</div>

hello everyone, I’ve been fighting with this problem for 4 whole days to no avail. I’m trying to deploy a simple project on a local ubuntu server VM running docker. I have three containers, Postgres, nginx and Django. I …

---

## [Django not Recognizing Secret Key Environment Variable in Production](https://forum.djangoproject.com/t/django-not-recognizing-secret-key-environment-variable-in-production/42960)

<div class="topic-metadata">

**Author:** [@jdchuck68](https://forum.djangoproject.com/u/jdchuck68)\
**Replies:** 3\
**Last updated:** [September 23, 2025, 4:21pm UTC](https://forum.djangoproject.com/t/django-not-recognizing-secret-key-environment-variable-in-production/42960 "2025-09-23T16:21:33Z")

</div>

I’ve set my ‘DJANGO\_SECRET\_KEY’ as an environment variable, but I’m still getting the secret key error message in my server logs, and the secret key warning when I run ‘python manage.py check –deploy’. The web browser di…

---

## [Un-apply migrations added via merge migration](https://forum.djangoproject.com/t/un-apply-migrations-added-via-merge-migration/42869)

<div class="topic-metadata">

**Author:** [@Feuermurmel](https://forum.djangoproject.com/u/Feuermurmel)\
**Replies:** 0\
**Last updated:** [September 18, 2025, 2:58pm UTC](https://forum.djangoproject.com/t/un-apply-migrations-added-via-merge-migration/42869 "2025-09-18T14:58:26Z")

</div>

I just had this issue in a production environment: A roll-out did not go as planned, and I want to un-apply migrations applied using ./manage.py migrate. But I could not find a way to do this using the migration manageme…

---

## [Architecture Advice for Research Portal (DRF + Next.js)](https://forum.djangoproject.com/t/architecture-advice-for-research-portal-drf-next-js/42808)

<div class="topic-metadata">

**Author:** [@madhurabl](https://forum.djangoproject.com/u/madhurabl)\
**Replies:** 2\
**Last updated:** [September 11, 2025, 1:14am UTC](https://forum.djangoproject.com/t/architecture-advice-for-research-portal-drf-next-js/42808 "2025-09-11T01:14:07Z")

</div>

I’m currently developing a research portal locally on my Mac using Django REST Framework (DRF) for the backend and Next.js for the frontend. We’re now preparing to move the project to a Test server environment. Our univ…

---

## [Need help in deploying the Django API in Microsoft Azure](https://forum.djangoproject.com/t/need-help-in-deploying-the-django-api-in-microsoft-azure/42708)

<div class="topic-metadata">

**Author:** [@Allanwalker999](https://forum.djangoproject.com/u/Allanwalker999)\
**Replies:** 1\
**Last updated:** [September 5, 2025, 6:30pm UTC](https://forum.djangoproject.com/t/need-help-in-deploying-the-django-api-in-microsoft-azure/42708 "2025-09-05T18:30:11Z")

</div>

I am trying to deploy my Django REST API to Microsoft Azure. I created a resource group and an app service. The database is Azure PostgreSQL. My app works locally, but I face issues after deployment. I’m not sure how to …

---

## [Form prevents makemigrations from executing](https://forum.djangoproject.com/t/form-prevents-makemigrations-from-executing/42720)

<div class="topic-metadata">

**Author:** [@Spidiffpaffpuff](https://forum.djangoproject.com/u/Spidiffpaffpuff)\
**Replies:** 10\
**Last updated:** [September 3, 2025, 10:24pm UTC](https://forum.djangoproject.com/t/form-prevents-makemigrations-from-executing/42720 "2025-09-03T22:24:16Z")

</div>

I have the following form in a Django project: class MaterialSearchForm(f.Form): keyword = f.CharField( widget=f.TextInput(), required=False, label= \_(‘Keyword’) ) subjects = f.ChoiceField( widget=f.RadioSelect()…

---

## [Is This Efficient? Local CRUD + Cloud Sync with Django, Celery & Redis](https://forum.djangoproject.com/t/is-this-efficient-local-crud-cloud-sync-with-django-celery-redis/42742)

<div class="topic-metadata">

**Author:** [@KennethAaron](https://forum.djangoproject.com/u/KennethAaron)\
**Replies:** 2\
**Last updated:** [September 3, 2025, 9:52pm UTC](https://forum.djangoproject.com/t/is-this-efficient-local-crud-cloud-sync-with-django-celery-redis/42742 "2025-09-03T21:52:56Z")

</div>

Currently running an app with both local and cloud DBs: Local DB handles all CRUD for real-time display and fast user interactions. Sync button pushes changes to Azure cloud DB via Redis-Celery for background proce…

---

## [Running mysite.com on local machine for wsl (linux) during django development.](https://forum.djangoproject.com/t/running-mysite-com-on-local-machine-for-wsl-linux-during-django-development/42555)

<div class="topic-metadata">

**Author:** [@alindafortunate](https://forum.djangoproject.com/u/alindafortunate)\
**Replies:** 3\
**Last updated:** [August 23, 2025, 6:38pm UTC](https://forum.djangoproject.com/t/running-mysite-com-on-local-machine-for-wsl-linux-during-django-development/42555 "2025-08-23T18:38:28Z")

</div>

Hello I need assistance. I am a junior dev learning django from Django-5-By-Example. I want to run mysite.com on https during django development but I am failing. I have installed django-extensions and Werkzeug to run…

---

## [Help about deployment configuration of a simple project](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497)

<div class="topic-metadata">

**Author:** [@falatop](https://forum.djangoproject.com/u/falatop)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 7:09pm UTC](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497 "2025-08-21T19:09:31Z")

</div>

Hello everyone, First the context : I work on Django 5.2 with PyCharm. I practice on a little project first (my CV), and try to deploy it on my own Server. It is a Shared server (french O2switch). It uses Phusion Pa…

---

## [what hosting do you recommend to host a django website?](https://forum.djangoproject.com/t/what-hosting-do-you-recommend-to-host-a-django-website/27601)

<div class="topic-metadata">

**Author:** [@Adrian-A-dev](https://forum.djangoproject.com/u/Adrian-A-dev)\
**Replies:** 3\
**Last updated:** [August 20, 2025, 12:42pm UTC](https://forum.djangoproject.com/t/what-hosting-do-you-recommend-to-host-a-django-website/27601 "2025-08-20T12:42:16Z")

</div>

I have a website project where the database will be programmed with django, what hosting do you recommend that are compatible with it??

---

## [Any precautions before migrating to Postgresql 18 Beta?](https://forum.djangoproject.com/t/any-precautions-before-migrating-to-postgresql-18-beta/42438)

<div class="topic-metadata">

**Author:** [@onyeibo](https://forum.djangoproject.com/u/onyeibo)\
**Replies:** 4\
**Last updated:** [August 18, 2025, 7:50pm UTC](https://forum.djangoproject.com/t/any-precautions-before-migrating-to-postgresql-18-beta/42438 "2025-08-18T19:50:35Z")

</div>

My django development projects no longer start since after a system update. Posgresql updated to version 18-beta. Before I run pg\_update on my development machine, I am curious how this may affect django projects. Has …

[Previous page](https://forum.djangoproject.com/c/users/deployment/24.md)

[Next page](https://forum.djangoproject.com/c/users/deployment/24.md?page=2)
