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

How can I give 2 domains to my Django project that contain 2 different apps inside that are hosted on digital oceans app platform?

I have a Django project that is hosted on the Digital Oceans App Platform. My project contains 2 Django apps inside I want to give the main domain to 1 Django app and the subdomain to the other Django app. I'm using google domains. How can I do this…
0
votes
1 answer

Django - media files - security

I created a Django app with Video files. I'm using Gunicorn & Nginx. A user (not root) that runs the django server. I restricted the views so only the users with correct permissions can view these. This works fine. But when watching a video, I can…
0
votes
1 answer

Nginx not calling static files on site

Django works fine but static files are not called server { listen 80; server_name www.bakuklinik.shop bakuklinik.shop; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { autoindex on; alias…
sohretaga
  • 69
  • 1
  • 9
0
votes
2 answers

404 for static images and media in Django in Production Mode

I am beginner in Django I am trying to run my application on Debug=False mode to simulate the production environment, I have added all the static url, and roots. My program is generating the static images in real-time from the video passed to the…
Abhijit Jadhav
  • 116
  • 2
  • 9
0
votes
2 answers

Django deploy errors

I just launched the Django app. As an image, everything is in place, but the form and admin panel do not work. Anyone who knows please help I get this error when I run the form. Let me know if I need to share any code. model.py from django.db…
0
votes
1 answer

When i am deploying on heroku i get Page not found (404)

When I go to the homepage, I get the following error: Page not found (404)`` Request Method: GET Request URL: https://blogapp85.herokuapp.com/ Using the URLconf defined in blog.urls, Django tried these URL patterns, in this…
0
votes
1 answer

deploying django to heroku :page not found error

I have been making a django app, and am now trying to deploy it to heroku. However when I go on it,says page not found the resources not found on the server and i am trying it on different app error remains same Here is my settings.py (at learst…
0
votes
1 answer

Django project deployment on an offline pc, locally, we don't want to go online

I have a Django project. we cannot go online, is there any way to deploy the project in a client computer just for the client to use there on his pc? no need to go online! user needs to type an address in browser to get the starting page of some…
K1 Asad
  • 3
  • 2
0
votes
0 answers

Nginx doesn't serve static and media with django and Docker

I need to launch my site in production, so I decided to do it with Docker container(at first time, newbie there) with Postgres, nginx and Django, everything is working inside a container, but on launched site I have in console 404 error with static…
0
votes
1 answer

DJango + nginx + gunicorn: how to start caching and which way is more standard?

I deployed my Django project using Gunicorn, but now can't use Nginx caching. How to start caching on a project that use Gunicorn and which caching method is standard for Django. I try to use Ngnix caching but it won't work. Here is an example of my…
SAM
  • 58
  • 6
0
votes
2 answers

Uploaded Media files are only served after I reload the django server

I'm quite new to django development, tired of searching for this particular case of mine. I have django app running on my windows 10 with debug = False. I am just about to deploy my app to digital ocean droplet. I am facing so many deployment and…
TechBrego
  • 13
  • 3
0
votes
1 answer

getting 500 Internal Server Error when hosting website on cyberpanel

I am hosting django application on Cyberpanel. I have created website in cyberpanel and setup my django project. also changed vHost configuration. but in LIST WEBSITES getting this error No Screenshot Available 500 Internal server Error here is…
Namita Tare
  • 123
  • 9
0
votes
0 answers

Unsuccessful command execution on instance id(s) 'i-04e3dd1fd8a1663c3' elasticbean django deployment

i am trying to deploy my django site on aws elasticbean but when i created the envoirment it thows me error 021-09-28 07:24:43 INFO Created CloudWatch alarm named: awseb-e-vuemp6euky-stack-AWSEBCloudwatchAlarmHigh-10XFBTK55D2M0 2021-09-28…
0
votes
1 answer

setting up django for deployment

I'm trying to deploy my Django app I've split the settings.py and put in a settings folder. Now before I run my server, I must first this set DJANGO_SETTINGS_MODULE=src.settings.dev How can I make the above command to be automatic so I don't have…
0
votes
1 answer

cPanel: Django Admin Portal not loading Static/CSS files

I'm trying to deploy my Django App on cpanel and the static files for django admin page won't show up but its working fine for the rest of the project. I even tried to run python manage.py collectstatic but it just gives me an error that something's…