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
1
vote
0 answers

I'm receiving the error: PermissionError: [Errno 13] Permission denied: '/app/vol'

The full error: The Dockerfile: FROM python:3.9-alpine3.13 LABEL maintainer="arithmeticatuition.com" ENV PYTHONUNBUFFERED 1 COPY ./requirements.txt /requirements.txt COPY ./app /app COPY ./scripts /scripts WORKDIR /app EXPOSE 8000 RUN python -m…
1
vote
0 answers

Unicode slug dose not work after deploying in iis8

I need help to solve my problem, I deployed a django web app in iis 8 that contains Persian slug, in development everything ok but when I deployed the app in iis 8, the app urls that contains Persian Unicode characters are not working. urls.py: from…
1
vote
0 answers

Django media not loading. staticfiles works

Using Django, I've deployed my web app to http://159.223.177.51/. To login to see the images, use sof///stackoverflow123 I can see the custom fonts and CSS so I know static is working. However, none of the media files are showing. When I try to…
stelity
  • 33
  • 8
1
vote
2 answers

Serve media files from outside the Django-project-folder with Nginx

I'm trying to serve in production (not development) media files for my Django-project with a Nginx-server. The media-files are not located within the django-folder. The folder structure is like: |- django_user | |- media | |- Myproject | …
Charbacca
  • 81
  • 1
  • 5
1
vote
3 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0 when deploying to Heroku

I tried to deploy my simple django project on heroku, but i couldn't understand how to solve this problem This is the git push heroku master remote: Traceback (most recent call last): remote: File…
1
vote
1 answer

NGINX serve static files - django project has no styling

I managed to deploy my Django app but I can not pass the static files with Nginx. I have followed all the instructions for deploying to production. When I inspect the page all I see is empty static folder Can anyone spot the mistake? Thanks a…
1
vote
0 answers

Django channels elastic beanstalk (linux 2) hooks postdeploy: -b command not found

For deployment of django channels on elastic beanstalk (linux 2 AMI) I tried implementing this blog ,it required creation of ./platform/hooks/postdeploy/ and in it two files 01_set_env.sh and 02_run_supervisor_daemon.sh, on eb deploy it fails and…
1
vote
0 answers

Can we manage the deployment of each django app within a single Django project independently?

Lets say we have one django project that has two apps - FooApp & BarApp. Each app talks to its own database. Meaning they both manage their own set of models. Is it possible to manage the deployments of these apps independently? It's okay for them…
djpanda
  • 835
  • 10
  • 20
1
vote
3 answers

best way to deploy django app for faster loading

I have created a Django app. it uses a bit more images and one page includes videos as well. the storage is on S3 AWS bucket on us-east-1. Database is in ap-south-1, AWS RDS PostgreSQL. the app itself is hosted on Heroku. I had also upgraded Heroku…
zaman
  • 123
  • 1
  • 11
1
vote
2 answers

how to run Django locally as a windows executable app

I'm considering building app with Django for only one user that would run application locally on windows. I read about containerizing Django apps, but it's new for me. My goal is to run Django server on one click like a standard windows app and…
Kosaaaaa
  • 115
  • 4
  • 7
1
vote
1 answer

Export equivalent for windows?

I am following a tutorial on building a simple website using django. I am at the stage of preparing my website for deployment. However, when I try to enter export READ_DOT_ENV_FILE=True into the terminal, I get the error message: export : The term…
1
vote
0 answers

Django Post Deployment Issues - Scripts and Models

Hi it's my first time deploying a Django app. I'm using PythonAnywhere to host and learn more. I am aware that deployment requires additional steps and code changes versus dev and believe I have taken these steps researching the documentation and…
1
vote
1 answer

Django - Debug set to True, when it is actually not

I have deployed my Django project on Ubuntu and I forgot to set the Debug to False till the very end, now I have pulled the last commit to the server with the debug set to False. So now when I try to access a non existing url, for example, it should…
Tommy D
  • 440
  • 1
  • 3
  • 13
1
vote
1 answer

Java Script working on local machine but not working on google cloud port 80

I am trying to deploy django web app on google cloud. I have tested on local machine and it appears to be working fine. But after I test it on google cloud port 80, the javascripts don't work. Here is the django form where I am referencing the…
1
vote
0 answers

gcloud.app.deploy - The caller does not have permission

I'm trying to deploy Django to Google App Engine flexible fron gcloud SDK on Windows. I follow this tutorial and the Google tutorial with the example files provided, same thing the deployement goes well until: ERROR: (gcloud.app.deploy) Error…
Zorro
  • 1,085
  • 12
  • 19