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
10 views

What's the difference of Django rest-framework's Authentication and Permissions?

I'm a litte confused about the difference of DRF's Authentication and Permissions. Their function seem to be very similiar. In django-rest-framework.org, the description of Permissions is "...
0
votes
0answers
15 views

ImportError: cannot import name execute_manager

I am installing Graphite on Debian 9 I am following this tutorial https://gist.github.com/xlson/1363542 Current directory root@debian:/opt/graphite/webapp/graphite# pwd /opt/graphite/webapp/...
1
vote
0answers
18 views

nginx + uWsgi is not using it's maximum capability. 90% workers remain idle all the time

I have deployed my Django application using nginx + uwsgi. I have also implemented micro caching and made other changes by following this article (Nginx 10k concurrent connections). Now I am using ...
0
votes
1answer
85 views

How to serve user uploaded files in Django / nginx in Kubernetes on GCP (Google Cloud Platform)

I'm trying to convert a django(with gnunicorn)/nginx/postgres docker-compose environment (using docker-compose) to kubernetes on GCP. I've got everything running smoothly except for serving MEDIA ...
0
votes
0answers
147 views

TTFB on AKS rises to ~7 seconds after ~100 concurrent API calls

I have a setup of AKS->Traefik(Ingress)->Docker(pod)->NGINX->Gunicorn->Django->SQL Server on Azure. on AWS my response times for a page that does ~100 requests to my API ~4.5 seconds to fully render, ...
0
votes
0answers
214 views

Configuring Apache for django project

im currently trying to deploy my django project to a web server hosted by a RHEL-8 VM. Im trying to set up the VM to utilize HTTPD (apache). However, i can't seem to get the Virtual Host configuration ...
0
votes
0answers
18 views

Django Gunicorn-Nginx 504 gateway timeout

I have read a lot of articles about gunicorn & nginx timeout configs . I have some requests on my website which take longer than 30 seconds . I changed all gunicorn timeouts to 3 seconds but ...
0
votes
1answer
12 views

unable to access executable in PATH from remote server

I have an web application hosted with Django-gUnicorn-Nginx. The web app is working mostly fine and is accessible except for one functionality. Recently, I added pybedtools, a python wrapper package ...
1
vote
1answer
85 views

AWS S3 Bucket Django 3.0 User Profile Image Upload Access ERROR

INTRO I am following this guide as recommended, here is the guide's GitHub repo. I have created an AmazonS3FullAccess to it as well I am using the guide's 3rd example "Mixing public assets and ...
0
votes
1answer
26 views

NGINX/Gunicorn/Django not serving custom error pages

I am attempting to serve custom error pages in my Django application running under NGINX. I have URLs defined for four pages, and navigating to them is successful; it shows the appropriate page with ...
0
votes
1answer
74 views

502 Bad Gateway nginx/1.14.0 (Ubuntu)

Im trying to deploy django app using nginx & gunicorn but its showing error sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/...
0
votes
0answers
13 views

Django DateFilter - input_format change

I need to change input format just for one field. I need to accept 31/03/2020 instead of 3/31/2020. If I enter 3/31/2020 then it's works, but when try 31/03/2020 then appears Enter a valid date. This ...
2
votes
1answer
43 views

SQLite works, but PostgreSQL migrated database causes ERROR - Django 3.0

Situation I have built Django 3.0 project with a couple of applications. I have created the accounts app based on following course and it's github Than I have created an application fro ...
0
votes
0answers
8 views

python cgi + openldap x framework

Hy all I have been using python( cgi) + html5 + jquery + css3 and a lot of forms than insert/show/change a openldap base. Now I intent to change this using bootstrap to make my life easirer...80) I ...
1
vote
0answers
18 views

Forbidden(403) permission access error on Apache2.4 on windows machine

I am running my Django app on Apache2.4.38. I have given all the necessary parameters and access to the Apache server. Still, I am receiving a 403 error when I try to access the Application URL. ...
0
votes
1answer
30 views

nginx fails while the website somehow still works

Description I have built my Django3, gunicorn, nginx, Ubuntu 18.04, Digital Ocean project based on this guide. I only had 1 problem that it does not shows the CSS and all other static files like ...
0
votes
0answers
28 views

404 error for static files after running certbot

I am setting up a Django project in production mode. When I was serving files over HTTP, everything appeared normal, CSS, JS and everything. However, as soon as I ran certbot, the styling and scripts ...
0
votes
0answers
45 views

Deployed Django 3 project doesn't sees static files

Deployed (on server) Django 3 project doesn't sees static and css files(whole static folder), the local on development machine works perfectly. The guide that I have followed is this. I have et up a ...
0
votes
1answer
63 views

Failed to start gunicorn.service: Unit gunicorn.service not found. Ubunto 18.04

I am following this How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04 guide. I have created the following file .socket sudo nano /etc/systemd/system/gunicorn.socket [Unit] ...
0
votes
0answers
55 views

No module named 'psycopg2'

I am trying to set up a PostgreSQL database for my django project, i installed psycopg2 i have this output Packages installed successfully: Installed packages: 'psycopg2' but when execute this command ...
0
votes
0answers
93 views

gunicorn failed to start on 18.04

i am running django on python3, gunicorn, nginx, wsgi while gunicorn is serving the app on domain:8000 but NOT on domain (iitiansenv) jagtar@wms:~/iitians/iitians$ systemctl status gunicorn ● ...
0
votes
0answers
19 views

408 status code on checking access logs of django on apache using mod_wsgi in windows

one is php site and other is django project. Php site is working fine but not django project.It is working fine on local runserver but not on apache.I have followed https://www.codementor.io/@...
1
vote
1answer
58 views

Running two Django project in the same server , or use a new one?

I already have created one Django project in an Apache server using CentOS 7 , python3... Now I have to create another django project and I wonder if I should add this project in the same server or in ...
0
votes
0answers
109 views

Gubicorn/Nginx does not download files completely: [CRITICAL] WORKER TIMEOUT (pid:18)

I am running a django app with nginx in docker. I can download files via an API using the library requests. When I want to download a file with 55 MB somehow the connection breaks down and the ...
0
votes
0answers
16 views

gunicorn.sock file is not being created

I am trying to configure Gunicorn and Ngnix my Ngnix is configured correctly but Gunicorn is not. I am not able to create "name".sock file. [Unit] Description=gunicorn daemon Requires=gunicorn.socket ...
0
votes
0answers
27 views

Apache: Access control

As a newbie, I find the Apache documentation a bit confusing, too much specification and too little recipes / practical examples to achieve a certain goal. Forum posts are usually referring to older ...
0
votes
0answers
212 views

celery + redis + django [Errno 111] Connection refused

I can not run the celery worker + redis + django. If I run this command to check that celery worker is ready to receive tasks: celery -A car_rental worker -l info I got this error: [2020-02-24 00:...
0
votes
0answers
20 views

Error to run ./manage migrate_schema (django-tenant) in a virtual machine

I have a single django application hosted on AWS - Web client <=> nginx <=> uwsgi <=> django. I decided to transform It into a multi tenant with django-tenant. Also, I'm using django-...
0
votes
0answers
14 views

Docker + Django + Nginx Random Intermittent 504

I am working on containerizing a Django application with Docker but I am having a lot of trouble getting the application to run consistently. My configuration below: Dockerfile FROM ubuntu:18.04 ...
0
votes
0answers
117 views

Nginx failure in dockerized container: (111: Connection refused) while connecting to upstream, client

I am running a django app with nginx in a docker container and everything was running perfectly fine up until I rebuild the container. Suddenly I get a 502 (Bad Gateway) error and the logs say (111:...
0
votes
0answers
14 views

GCP micro instance running Apache and Django app do stop responding once per few days

I am running a micro GCP instance of VM with Linux Ubuntu. I run Apache and Django web application on that VM. It worked fine in the past - at least a few months. The website hits have increased from ...
0
votes
0answers
18 views

Django keep redirecting website according to browsers language

Our Django default website page is http://example.org/en and we also have versions of same website in Dutch http://example.org/nl and German http://example.org/de We always want our website to go to ...
0
votes
0answers
74 views

Handling Multiple Concurrent Request in Django, Gunicorn, Nginx

I am facing some issue regarding multiple concurrent request handling in my site. To explain in details - I have a django view which recieves file from the request and then call an api and do some ...
0
votes
0answers
308 views

Load testing throws Server 502 error: Bad Gateway after 700 users. Gunicorn, Gevent, Nginx, Django

I'm trying to reach 2000 concurrent users with my benchmarking tool. I'm using locust to simulate them. My server has 24vCPUs, 128GB RAM, 25SSD. I want to be able to serve 2000 concurrent users ...
1
vote
0answers
149 views

Scaling and Load testing Django Nginx and Gunicorn: 502 Server Error + Resource temporarily unavailable gunicorn.sock

I'm doing load testing with locust to see if my server can handle 1500 users. What I'm using: Django, Nginx, Gunicorn, Postgresql My droplet: 24vCPUs, 128GB RAM, 25GB SSD at about 1100 users I start ...
0
votes
0answers
76 views

Production configuration details for Django Apache server behind an nginx reverse proxy

I am currently trying to setup a backend architecture where I have a Django project running through a virtual environment on an Apache server (within a Docker container) that receives requests through ...
1
vote
0answers
33 views

Add primary domain to Lets Encrypt for nginx configuration

I am running an app with a dockerized nginx on an EC2 instance and configured my ssl with Let’s Encrypt. Now I would like another primary domain to that certificate but I fail in doing so. When I run ...
0
votes
0answers
572 views

nginx can't find /etc/letsencrypt/options-ssl-ngin.conf file

I'm trying to serve a python-django webapp using a linux box (running ubuntu 18.04) with nginx, gunincorn, letsencrypt and docker. After following a number of online tutorials I have been successful ...
0
votes
1answer
244 views

Nginx & Django & Gunicorn - Redirecting subdomain to app

I did an extensive search on the topic but nothing could help me. I am currently building a Django site, and using Nginx to reverse proxy to Gunicorn. I am trying to separate my apps into subdomains....
0
votes
0answers
141 views

Create let's encrypt certificate for domain with dockerized nginx

My goal is to have a django app running on an EC2 instance using nginx inside of a docker container. I have the app. I have a domain. I have an EC2 instance. I'm trying to bring it all together. ...
0
votes
0answers
49 views

Basic configuration of Nginx with django on EC2:

I want to configure my dockerized django app with nginx and run it on an EC2 instance and I can't get it to work. I am a beginner with nginx. My error when I do docker-compose -f production.yml up is:...
0
votes
0answers
166 views

Can't login to django admin; throws 502 Bad Gateway

I've succeeded in hosting a django app on a DigitalOcean droplet following this blog post, however I'm unable to log in to the django admin. As soon as I hit 'login' a 502 is thrown and I can't access ...
1
vote
0answers
122 views

Nginx - UWSGI 504 gateway timeout

I saw lots of topics of nginx 504 error , but non if them solved this. Im using nginx , uwsgi on 1 machine to run Django application . i tried to add these config line at the end of /etc/nginx/...
0
votes
1answer
36 views

Django app after hosting is not available in the IP address

I followed the docs of digitalocean to host my django app. After spending hours on the same, i was able to host. But the next day when I checked the ip address, it is not available. Also, I cannot ssh ...
2
votes
0answers
189 views

uWSGI can't load config in Docker

I have a weird problem, which is probably related to my Dockerfile, but I fail to see it - I've tried different settings, but nothing helps. Here is my uwsgi.ini file: [uwsgi] strict = true socket = ...
0
votes
2answers
367 views

Django import error while installing Tacker via Devstack: No module named django.core.management

I am trying to install Tacker via Devstack. I am following this installation guide. I use same local.conf as in the guide. However, after running ./stack.sh, I see this error: Requirement already ...
0
votes
1answer
889 views

Restoring suspended AWS account now Error 500

I have a django app on AWS Elastic Beanstalk that was suspended when I forgot to update my payment info when it changed. Once corrected, the env says it's healthy but all I get is 500s. When I go to ...
0
votes
0answers
97 views

Convenient monitoring of database under Django

I am developing a web app under Linux and use Django for its back-end along with MySQL database (via DBeaver). Everything is awesome, but I was not yet able to find a convenient way to monitor the ...
0
votes
0answers
94 views

Nginx with UWSGI - Error 502 every minute

I deployed a Django app by following this tutorial. I ran uwsgi --emperor /etc/uwsgi/vassals --uid nginx --gid nginx --daemonize /var/log/uwsgi-emperor.log and the site worked fine. But 3-5 minutes ...
0
votes
1answer
574 views

How to have apache handle .well-known/acme-challenge and still have / passed to wsgi

In order to support automatic LetsEncrypt certificate renewal certbot uses the --apache handler. e.g. certbot renew --apache This handler installs a temporary VirtualHost for */.well-known/acme-...

1
2 3 4 5
19