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

Django App deployed on Heroku works despite wrong SECRET_KEY

In my Django project I have an .env file which holds my DJANGO_SECRET_KEY environment variable: export DJANGO_SECRET_KEY=dummysecretkey123 I added a reference to the .env file in my .gitignore file before I initialized the repo, so the SECRET_KEY…
Daniel
  • 963
  • 1
  • 12
  • 29
0
votes
1 answer

Django Heroku how to go back to development server to make more changes

So I just deployed my Django app to Heroku, and everything is working fine. The current version of the app isn't perfect, so I want to edit it, but my current process is: 1. **make changes in files 2. git status (just to make sure changes are…
0
votes
1 answer

error: Someip:port is not a valid port number or address:port pair

This is the first time I am deploying a django application. I created an AWS ec2 ubuntu instance. I followed the steps in this tutorial- https://adeshg7.medium.com/deploy-django-postgresql-on-ec2-using-apache2-from-scratch-42dc8e6682c1 The demo…
0
votes
2 answers

gunicorn service is not starting even with all configuration files are correct

gunicorn service is not starting even though i configured everything correctly its not working please take a look on my directory structure directory structure This is my service file [Unit] Description=gunicorn…
0
votes
0 answers

no module named mysite.wsgi django Heroku Deployment

i am trying to deploy my django project on heroku backed by postgreSQL it runs fine on local however while deploying deployment is successful when i run the url like myapp.herokuapp.com, it throughs error my Procfile code: web: gunicorn mysite.wsgi…
0
votes
1 answer

Problem with deploying Django app using Heroku

I am not clear with where to save Procfile in Django app for Heroku my app file structure is like this: coding_site coding_site wsgi.py settings.py Procfile2 readME.md Procfile1 other_files should I save in Procfile1 or Procfile2…
Jaya Shankar B
  • 121
  • 2
  • 8
0
votes
1 answer

Django deployment error on console when opening through Public IP

I am deploying a django site for the first time on aws ubuntu linux ec2 instance. I used Apache and mySQL database. I was able to successfully deploy the site and it was accessible through my public IP but it gave a warning in the Chrome…
0
votes
0 answers

django admin change page add foreign key error: server refuses to connect

I have a model called "press" with a field for "lab", which is another model. on the admin change page for an object in "press", I can choose the "lab" from a list, or click the green plus sign to add a new one. In development, this works fine. the…
anp925
  • 59
  • 4
0
votes
1 answer

Static file not found in Django production

I am trying to deploy my Django project using Ubuntu and apache webserver. When I transferred my project to the Ubuntu web server and tested it in development, everything went fine. However when changed to production, I experienced file not found…
jxw
  • 586
  • 2
  • 6
  • 36
0
votes
1 answer

Django + Docker - Server Error 500. Long Post

I am currently trying to get my Django application ready for deployment. I am trying to 'dockerize' my application by creating an image of my application using docker, dockerfile and uwsgi. I can do this with the following command: sudo docker…
0
votes
1 answer

Django admin access error after deploying on Heroku

When I try to access admin sitename.herokuapp .com/admin , then it shows this Programming Error Views.py file from django.shortcuts import render from . serializers import apiserializer from rest_framework import viewsets from .models import…
Waseem
  • 7
  • 4
0
votes
1 answer

Deploying django3 project with mod_wsgi

I'm experimenting to publish my django project with Apache mod_wsgi. I created a simple django3 project named sampleapp in virtualenv. Then, I configured my /etc/apache2/sites-enabled/000-default.conf file as follows ServerAdmin…
radix
  • 3
  • 3
0
votes
1 answer

Django Deployment - No web processes

I created an application using Django 3.1.5 and for some reason, it does not deploy correctly. I will share what I did and have it. I have set up my Procfile and I have my requirements.txt, I did the deployment as I told on the website, but I am…
0
votes
0 answers

Accessing django app in linux server from local machine

I am trying to access a django app in port 8000 of a linux VPS from my local machine. Port 8000 is already open public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: cockpit dhcpv6-client ftp http https…
0
votes
1 answer

Error building my web application using Docker

I am a newbie using Docker, I have completed my web application in Django, and I want to containerize it using Docker. I have gone through a particular tutorial where an existing web application was dockerized successfully but when I tried the same…
coderboy
  • 741
  • 2
  • 17