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
0
votes
1 answer

Where to host Django project files on deployment server

New to Django here. I have developed a minimum working django website with Postgres as database back-end and nginx/gunicorn as web server on Ubuntu linux. Currently all the files are on my laptop in ~/workspace/djangoapp/src$ in my home directory. I…
user1933205
  • 300
  • 4
  • 12
0
votes
1 answer

Page not found (404) “/app/media/products/23/05/01/jeans.jpg” does not exist in django

Page not found (404) “/app/media/products/23/05/01/jeans.jpg” does not exist while delpolying on railway (as i have turned debug on for the exact error) . i get this error when i am trying to open my image in new tab,it is not showing after…
0
votes
0 answers

my django project works well when deployed on heroku, but it goes down on docker

when deploing my project on heroku with 125 mb ram , with 7$/month it works perfect, and when deploing on docker with server 16 ram and 6 vcpu, it works , buut every 15 or 30 minutes it is being like down , but itsnot . no error in logs, no error on…
0
votes
0 answers

Cant' start gunicorn for a django project, due to failed (Result: resources) error

I can't figure out what's wrong. Spend almost 2 days on this error and I am not able to find if it is a typo or concept mistake. I want to mention that the app started perfectly using `python3 manage.py runserver 0.0.0.0:8080. My environment is on…
0
votes
0 answers

media files are autmoatically deleted django deployment

i am deploying the code in jenkins server after checkeing in server ip existing media images are not displayed and update code changes perfectly working and upload new images displayed but old images are not displayed. please can you give me…
0
votes
1 answer

unable to get video feed from camera using opencv in django web app

I have created a django web app and written code to get video feed from my laptop camera using opencv. def start(request): print("HI") def testDevice(): cap = cv2.VideoCapture(0) if cap is None or not cap.isOpened(): …
0
votes
1 answer

Static Files not loading when DEBUG = False

I'm using namecheap shared hosting and I hosted my site using cpanel. My site is working fine but if i made DEBUG = False in project settings.py file the static files are not loading. My site url:…
0
votes
1 answer

How are environment variables accessed from ".env" file if Django project deployed to AWS from Github?

I have a Django project deployed on AWS EBS from a Github repo. My secret key is kept on a .env file. I've included the following: settings.py from decouple import config "SECRET_KEY" =…
0
votes
1 answer

How to run django app on windows server ec2 instance with mysql database and costum domain

I have Copied my files to the server and also setup the domain in the route 53 and also installed the xampp server now When i try starting the server with the command Python manage.py runserver 0.0.0.0:80 it gives me the following error Error:…
0
votes
0 answers

How can I recover my deleted Heroku Database

I was using the free dyno plan of Heroku for my personal project. Now Heroku stopped providing free service. and in a few days Heroku also deleted the database of my application. I want to recover and back up that database so I can deploy my app…
0
votes
0 answers

How can I Deploy a Django App as a .war file or in any other packaged way?

I have a Django Project for which I am trying to find a way to deploy as a .war file. My objective is to not reveal the source code during deployment to De-Couple Django App from Database and deploy as a .war file. This will help me to update the…
Akanksha
  • 1
  • 1
0
votes
0 answers

Django acting weird on Windows server IIS deployment

I have the following view which allows me to save the information of a multi step application. def saveNewApplication(request, *args, **kwargs): educationList = [ val for val in pickle.loads(bytes.fromhex(request.session['education'])).values()…
Papis Sahine
  • 105
  • 8
0
votes
1 answer

ModuleNotFoundError: No module named 'proj'

I ran into this problem and searched many resources but couldn't find a solution. My Django project was running successfully on my local. But when I deployed it to the server, it kept getting the following error. ModuleNotFoundError: No module named…
0
votes
0 answers

Error while opening the deployed Django project to Railway

I am getting this error while opening the deployed site on railway . I looked for the solution and found that we need to change the host of mysql settings, so I changed them. These are my new database settings. DATABASES = { 'default': { …
0
votes
1 answer

How to deploy Django App on Ubuntu using Apache2 and mod-wsgi-pytho3

I am trying to deploy my Django App on AWS by following this article Link of the article. I have done almost same but getting this error [Sun Nov 13 16:02:45.432532 2022] [wsgi:error] [pid 116628:tid 140699140834880] [remote 171.78.234.250:51518]…
nehat khan
  • 69
  • 5