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.

1012 questions
0
votes
1 answer

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 images. Before during the whole guide nginx have…
sogu
  • 213
  • 2
  • 4
  • 12
0
votes
1 answer

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] Description=gunicorn…
sogu
  • 213
  • 2
  • 4
  • 12
0
votes
0 answers

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 download doesn't finish. I tried tweaking nginx configs…
Micromegas
  • 231
  • 3
  • 12
0
votes
0 answers

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 versions of Apache and refers to files that do no…
Jaco
  • 143
  • 1
  • 7
-1
votes
1 answer

How can I set up django with apache?

I am new in django/python. I am currently using django's in-built server for development. I want to configure apache to run django. As with some google search, I found that I need mod_wsgi, which I have installed on my windows 10. However putting…
-1
votes
1 answer

Error: ip address not working After the giving to nginx

I am deploying the django app to digitalocean my ip address is not working after the sudo vim /etc/nginx/sites-available/lok in nginx .I added to the my nginx is as follows upstream app_server { server…
Amresh
  • 3
  • 3
-1
votes
1 answer

How to permanently have /xxx sub domain

I have several applications running on the same cluster and want to set up a subdomain for each application. To give you a brief description of current set up, I have a Django app, Jira, and Gitlab running in a cluster. It would be nice I can…
Jason Marsh
  • 107
  • 1
-1
votes
1 answer

django+gunicorn+supervisord+nginx redirect happening

I have django application, hosted using gunicorn,supervisord and nginx. Following are the config files nginx.conf upstream app_server { server unix:/home/jfraixedes/run/gunicorn.sock fail_timeout=0; } server { listen…
Kishor Pawar
  • 109
  • 5
-1
votes
2 answers

How to restart gunicorn in Jenkins build?

I'm trying to build a Jenkins job that (1) pulls the latest from Git, (2) builds my Django project, and (3) restarts gunicorn and nginx. However, when I try to restart gunicorn, I get the following error: jenkins@digitalocean:/$ /usr/sbin/service…
ttmtran
  • 3
  • 1
  • 4
-1
votes
2 answers

How to filter out identical double requests on server

I've noticed that my Django application from time to time makes double database queries, instead of just one. The log file shows two similar requests at (almost) the exact same time. Example: [pid: 749|app: 0|req: 892/2837] x.x.x.x () {44 vars in…
Vingtoft
  • 1,547
  • 3
  • 15
  • 17
-1
votes
1 answer

understanding when GET request can send more bytes

Recently for one django website I am noticing some strange log messages. Normally when I open the website in a browser I get following in log message "GET / HTTP/1.1" 200 7031 which is returning HTTP OK response and 7031 bytes. But sometimes I…
Kevin
  • 127
  • 6
-1
votes
1 answer

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not found, primarily the /admin isn't seen on anything. I…
Codejoy
  • 107
  • 5
  • 17
-1
votes
1 answer

Apache Error (AH01276), Cannot serve directory /var/www/project/:

I am trying to deploy a Django web app on a newly installed centos7 server. for this i am using apache2.4 with mod_wsgi. i am stuck at serving the static files and because i am new to this, this is so confusing to me. here is my configuration files…
Soufiaane
  • 99
  • 5
-1
votes
1 answer

How do I supposed to run Nginx + Django site connected together by UNIX socket?

runfcgi.py:18: RemovedInDjango19Warning: FastCGI support has been deprecated and will be removed in Django 1.9. What to use instead? I don't want Nginx and Django site to share user account, chroot and other things and want a UNIX socket between…
Vi.
  • 841
  • 11
  • 19
-1
votes
1 answer

Error: "invalid number of arguments in "uwsgi_param" directive" on nginx restart

CentOS 6.6, nginx 1.0.15. I'm trying to configure nginx <-> uwsgi <-> Django stack, using this tutorial. The nginx conf file is: upstream django { server 127.0.0.1:8001; } server { listen 8000; server_name 0.0.0.0; # an IP address…
Vadim Tikanov
  • 101
  • 1
  • 6