Questions tagged [django-deployment]

django-deployment refers to questions about different ways to deploy Django applications

django-deployment refers to questions about different ways to deploy Django applications.

See documentation.

Also see:

214 questions
2
votes
1 answer

When I Deployed django app in Heroku at that time "Compiled Slug Size is too Large" error occurred

I followed the exact steps as mentioned in the article, while deploying my django project to heroku. However, I am getting the following error for git push heroku master: git push heroku master Please could anyone let me know what could be the…
Riya
  • 21
  • 1
2
votes
0 answers

Django deployment with nginx, gunicorn without virtual enviroment

I have a django website which was hosted using one click app option at digitalocean. Site gets good pageview and has grown bigger. I am moving the site to new server and do not want to use one click application option to do everything manually. I am…
Sapna Sharma
  • 722
  • 1
  • 8
  • 19
2
votes
2 answers

Django. DEBUG in production

I'm writing my first real project in Django and I have a problem with properly setting DEBUG in development and production. In my settings.py project file I have: # SECURITY WARNING: don't run with debug turned on in production! DEBUG =…
Aleksander Krauze
  • 3,115
  • 7
  • 18
2
votes
3 answers

Getting error on Heroku for "Django DisallowedHost at / Invalid HTTP_HOST header:" even after adding the url to ALLOWED_HOST

So I'm trying to deploy my django project to heroko, and I got this. I know what is the issue here, so I have added the url the-yogify.herokuapp.com to the ALLOWED_HOST in the settings.py file of my django project. ALLOWED_HOSTS =…
2
votes
0 answers

'404 Not Found. The requested url / was not found on this server' Django deployment with apache2

I'm developing a django website and am currently working on deploying. I'm following this tutorial. And im in the last stage of the tutorial (1:08:00 in the video). After he finished configuration th django-project.conf file he saves and everything…
alexholstv
  • 146
  • 1
  • 10
2
votes
1 answer

How to run a single django project for different customers

I have developed a web application named “SANET” using django, gunicorn and nginx for a customer named customerA and gave them access using customerA.mydomain.com. Now a new customer customerB has ordered a dedicated version. Here is what I think I…
Sinaenz
  • 23
  • 3
2
votes
2 answers

I am trying to deploy my first django app on heroku and getting error a pre-receive hook declined

I have unsettling the buildpacks but it didn't work and I do have requirements.txt and procfile as well as virtual env. (deploy) C:\Users\Samar\Desktop\deploy\blog>git push heroku master Counting objects: 127, done. Delta compression using up to…
2
votes
1 answer

What is the recommended method for deploying Django settings to a production environment?

I have looked everywhere and all I could find was outdated or bits and pieces from several different sources, but none of them had a complete step of how to deploy Django to a production environment. What I would like to see is the recommended way…
Rodrigo Queiroz
  • 2,674
  • 24
  • 30
2
votes
0 answers

Django Channels wss not connecting received 404 Error

I am attempting to move my server off my local subnet and to a domain. The main webpages are working and I have them behind an SSL. Apache does a rewrite of the url from any HTTP connection to an HTTPS. However when I attempt to connect with…
swrap
  • 314
  • 1
  • 3
  • 11
2
votes
1 answer

Django error during collectstatic when using nested_inline on heroku

I'm trying to deploy a django app that uses nested_inline on a heroku instance. Everything works great locally, but I'm getting an error on the heroku server during collectstatic. I followed the heroku guide to getting a minimal django setup…
cxrodgers
  • 4,317
  • 2
  • 23
  • 29
2
votes
1 answer

Deploy ready Django application on Heroku servers

I have already developed an application with Python Django and it's working, I am new to Python Django and now I need to deploy it on heroku servers, there are so many blogs and websites including heroku site that explains deploying a django app on…
Siavosh
  • 2,314
  • 4
  • 26
  • 50
2
votes
0 answers

What's the best way to make usage of Django behind a lighttpd reverse proxy?

This is more a question for some general thing. I've got a lighttpd running and want to connect it as a reverse proxy with Django 1.6. I've read a lot about wsgi, gunicorn ... well, not sure what's the current best way of doing this?
frlan
  • 6,950
  • 3
  • 31
  • 72
1
vote
1 answer

Django: Problems with Fileresponse in production

Django: Fileresponse works fine in local but it doesnt in deployment In local i did this @login_required @permission_required('plataforma.ADMIN', raise_exception=True) def admin_descargar_planilla(request,plantilla_id): try: plantilla =…
1
vote
0 answers

Deploy Django App wih Dockerfile in Render

I'm trying to deploy Django application with Dockerfile in Render.com. I have added the below codes in Dockerfile - ARG PYTHON_VERSION=3.10-slim-buster ARG DEBIAN_FRONTEND=noninteractive FROM python:${PYTHON_VERSION} ENV PYTHONDONTWRITEBYTECODE…
1
vote
1 answer

Run Celery tasks on Railway

I deployed a Django project in Railway, and it uses Celery and Redis to perform an scheduled task. The project is successfully online, but the Celery tasks are not performed. If I execute the Celery worker from my computer's terminal using the…
Jim
  • 541
  • 1
  • 7
  • 15
1 2
3
14 15