Questions tagged [django]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Port not opened in azure, how to fix that?

I am running django project on a azure ubuntu 18 machine. It runs on 8000 port. So I opened the port from security section of azure. And the firewall is inactive on that machine. But still, I can't ...
-1
votes
1answer
18 views

How two different applications should get served using one single apache2 virtualhost configuration

Just for assumption here testsite.com which is my php application and testsite.com/project is python application I have following settings in my apache site config file /etc/apache2/sites-available/...
0
votes
0answers
12 views

Unexpected 301 redirect in limited devices

I have an EC2 instance that hosts a Django app with Gunicorn and served by Nginx with following configuration. upstream app_server { server unix:/home/ubuntu/domain/app.sock fail_timeout=0; } ...
0
votes
1answer
29 views

ERR_CONNECTION_REFUSED I can not connect my Ubuntu Server

I have Ubuntu server that I am serving Django project. But I can not browse anything. I get ERR_CONNECTION_REFUSED error on all browsers. Server host, OS, and applications: Digital Ocean Ubuntu 18.04 ...
0
votes
1answer
53 views

Static files with Python, Apache (Proxy) and SSL [duplicate]

It's my first question in the community, i apologize in advance if I write something wrong I developed an application in Python (Django) and in the quality environment I am using gunicorn to provide ...
0
votes
0answers
26 views

Coworkers think latest Django 3.1.7 needs a mod_wsgi newer than the 3.4.18 provided by Centos 7.9

My coworkers are asking me why we are using the Centos 7.9 provided apache + mod_wsgi for the sake of Django 3.1.7 VERSUS hand assembling a custom build of either Centos 7.9's apache or a custom ...
-2
votes
0answers
41 views

Bad request returned from public IP address on Nginx server [closed]

In essence, I've been trying to set up a custom webserver for myself using Ubuntu 20.04 LTS on my Raspberry Pi 4. So far the configuration has gone well enough that I can access the 'webpage' the ...
0
votes
1answer
41 views

How to configure nginx proxy_pass to serve http images from https website?

I have django website and remote image storage. I want to proxy for example /images/ from django to server 10.0.0.40/images/. location /images/ { proxy_pass http://10.0.0.40/images/; } No errors ...
0
votes
1answer
34 views

Redirects from Nginx reverse-proxyed Django ASGI server going to wrong subdirectory

I'm trying to install Etebase in a subdirectory of my Nginx webserver. (I'm also running a Pi-hole dashboard on this server in a seperate subdirectory.) Etebase is a Django app using ASGI. I'm using ...
0
votes
0answers
18 views

NGINX - django subdomain proxy_pass keeps redirecting

I'm trying to add subdomain news.abc.com for my django application and forward it to example.com/news/ And NGINX keeps redirecting whatever i do. My current config is server { server_name news....
0
votes
0answers
33 views

Sendgrid sends email to spam due to DMARC failure in Django app

I am using AWS route 53 to register my domain for Django application. I have used my institutional email (e.g. [email protected]) for domain registration. I want to use the same email address to ...
0
votes
0answers
14 views

Sendgrid domain authentication sends email to spam in Django

I am trying to send email from my Django application. For this, I have used Twilio SendGrid service. Though my application can send the email, it ends up in spam folder. So, I have followed this ...
0
votes
0answers
20 views

When is it necessary to use PGCrypto when developing a Django App with Postgres and publishing to Heroku?

Is it necessary to use PGCrypto to encrypt fields in our Django app? I ask because on the site it says that the data is encrypted at rest in an S3 bucket? Would we be covered then, in terms of data ...
0
votes
1answer
48 views

How to point static folder in Nginx for a Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. But its static files are not detecting. Location of my static folder location: /path/...
0
votes
1answer
30 views

How to write nginx proxy pass for the Django application

I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows. server { listen 80; ...

15 30 50 per page
1
2 3 4 5
66