Django, "the web framework for perfectionists with deadlines", is a Python-based framework for creating web applications. With a powerful object-based database mapper, a clean syntax for mapping URLs to views, a simple template language and a convenient automatically generated administration interface, Django is the most popular of the Python web frameworks.
Questions tagged [django]
1012 questions
0
votes
2 answers
apache, serving outside
Greetings
I have a local development machine that connects internet from an ADSL router. I want to let a person on the internet to access the local apache server (under Ubuntu) to see my site (which I can access via typing 127.0.0.1 at my browser)
I…
Hellinari
0
votes
1 answer
Gunicorn quits without notice
I'm deploying a django/nginx/gunicorn site and am following this guide while doing so. Following the subheading "Final Steps for Production Deployments", I've created a production gunicorn configuration file and am running it from the command line…

Matthew Calabresi
- 143
- 1
- 7
0
votes
1 answer
Connecting to hosts postgresql from django app running in a docker container
I am trying to connect to my hosts postgresql server (version 14) from my django app running in a docker container.
here are my settings
docker-compose.yml:
version: '3'
services:
web:
build: .
container_name: dm-api
volumes:
…

bwright
- 123
- 8
0
votes
0 answers
nginx not serving static files after adding app to docker-compose
I have an app (blog) made with Python and Django. Using docker-compose I've managed to deploy it to a Digital Ocean droplet.
The Docker stack includes a Postgres db nginx, nginx-proxy and the nginx-acme companion for SSL. The app works fine in…

guillermo_dangelo
- 101
- 2
0
votes
1 answer
Django setting environment variable globally
I'm having a problem setting up Django on our CentOS server using mod_python. Site 'A' is running PHP (Codeigniter) and site 'B' is running Django. Our Django site is running perfectly.
However, every once in a while (maybe 1 or 2 requests in 10),…

John McCollum
- 265
- 1
- 2
- 7
0
votes
1 answer
Best way to config gunicorn and nginx with django?
I am trying to deploy django with gunicorn and nginx on heroku, and i'm kinda confused with the way to config gunicorn and nginx, when i searched through internet, they usually create gunicorn.socket
[Unit]
Description=gunicorn…

Tùng Nguyễn
- 51
- 1
- 5
0
votes
0 answers
How to generate embedded element for other site to consume?
If I put a link on a comment on Twitter, facebook and other place the website analyse the link and show a small preview of the link if possible. It could be a small player for a video or an image with a title, etc.
How does this work?
Is there a…

alfor
- 1
0
votes
1 answer
connection refused django gunicorn nginx
I am getting following error when running search feature on my site (search feature makes api request to my api server):
2022/08/31 21:01:56 [error] 726#726: *23 connect() failed (111: Connection refused) while connecting to upstream, client:…

codyc4321
- 103
- 5
0
votes
0 answers
Apache Reverse Proxy using mod_proxy
0 Introduction
I'm trying to setup a server with a main website hosted on ports 80 and 443 (let's call it example.com) and a section on this website that serves umami analytics hosted on port 3000 (let's call it umami.example.com) using a reverse…

Tox46
- 13
- 1
- 5
0
votes
1 answer
Configure two application in same server in Nginx on two ports
I have two different applications.
Survey application built with express framework
Django application using rest api and react
I would like to achieve:
vardhan.com/survey, vardhan.com/feedback, etc on survey application and
vardhan.com/ and…

vishnu vardhan
- 1
- 1
0
votes
1 answer
Linux / Django / Site not reachable
Something wrong. 2 months ago I was able to access my django server to this url/port
http://212.47.245.79:8000/
Yesterday I went back to this machine, as connection was down. I have restarted django, and I got ERR_CONNECTION_REFUSED in my…

fransua
- 111
- 3
0
votes
2 answers
How do I test whether a newly created user can communicate with a PostgreSQL database?
My settings:
Ubuntu 9.10
PostgreSQL 8.4.2
I created a new user(jdoe) under my local PostgreSQL with the following command in the psql shell:
CREATE USER jdoe WITH PASSWORD 'password';
I also have created a new database called mydb. My goal is to…

Thierry Lam
- 6,261
- 10
- 27
- 24
0
votes
1 answer
How would I dynamically add servers to a load balancer?
This is a tough question to phrase in the limited space for the title, but I'll try my best to explain myself. I want the users of my website to be able to run the servers themselves. Those servers would be valued and rated. I want to submit those…

Nick M
- 1
- 1
0
votes
1 answer
How to serve phpMyAdmin to localhost/phpMyAdmin instead of localhost:8080 using nginx in docker
In my project, I am using Django and nginx, but I want to manage my cloud databases through phpmyadmin.
Django is working fine but I can't do the same with phpmyadmin because it is running in apache at localhost:8080, when I want it to run in nginx…
0
votes
2 answers
How to invoke a .env file into a Django project that runs in a Docker container on a K8s server?
I most likely only need a hint into the right direction.
I have a docker container running a Django app using gunicorn and nginx.
This Django app is currently getting its environment variables from a .env file.
FROM python:alpine
EXPOSE 8000
RUN…

David
- 159
- 8