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 ...

learn more… | top users | synonyms

-2
votes
0answers
10 views

Setting up own domain (with Django and Apache2)

I am running a website on a VPS using apache2 and Django on Debian. I felt as if it would be fun to give it its own domain instead of just using the IP, which works fine. After purchasing one, I ...
-1
votes
0answers
4 views

Deploy Django-Httpd on Centos

I am trying to deploy a Django on Centos with httpd. I try to follow many dicumentations and tutorials but none of them is working. Is there any step by step document/tutorial that really works and ...
0
votes
1answer
15 views

Nginx, angularJS, django and phantomJS configuration

I have succesfully set up Django, angularjs and phantomJS (for SEO purposes) to work together, however I am having a small problem with routes. http:// something.com/?_escaped_fragment_= gets ...
0
votes
1answer
18 views

What user should run the gunicorn process?

When running a Django application on a Debian server, should you create some sort of application user (e.g. "myappuser") and run the gunicorn process as that user or can/should gunicorn be run as ...
0
votes
1answer
19 views

What is right way to tmux with fabric django?

1.I am doing this on local machine tmux new -s amazon then I ssh in to the server into tmux window shh user@amazon then I detach it ctrl b-d Into fabfile.py I am doing like this local("tmux ...
0
votes
0answers
50 views

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. ...
0
votes
0answers
11 views

Apache cannot change location errorlog in virtual host

I use the directive ErrorLog ${APACHE_LOG_DIR}/error1.log in a virtual host. But the output error is still in error.log. I have restarted apache but things doesn't work. However, the relocation of ...
0
votes
2answers
39 views

Nginx configuration for long-running tasks

I have a web-based application that conducts some linguistic analysis of user-submitted texts. This is a rather memory-intensive task and typically takes an extended period of time (e.g., up to 3 ...
0
votes
1answer
77 views

Postgresql Error: could not receive data from client: Connection reset by peer

I try this stack: nginx + uwsgi + django + postgresql, the request can reach to views of django, client show 500 server internal fault, I check postgres log, found the error could not receive data ...
1
vote
0answers
16 views

Can I give a staff user delete access without change access?

I manage a django-1.6 application where I want to give a staff user access to delete instances of a specific model through the /django interface without giving that staff user access to change ...
1
vote
1answer
34 views

Unable to restore postgresql data dump for Django app hosted on Azure VM

I am trying to restore a postgres data dump for a Django app of mine. The data dump was extracted from Heroku, and pg_restore is being run on an Azure VM with Linux on it. There are around 40 tables ...
0
votes
1answer
41 views

'Invalid input syntax for type inet' db error in Django app with postgres when Gunicorn+Nginx(reverse proxy) installed

I have a Django app with postgres back-end where I'm configuring gunicorn to work behind nginx as reverse proxy. My machine runs Ubuntu 14.04. Everything seems to have worked, except I've run into a ...
0
votes
0answers
20 views

After deploying django app to Elastic Beanstalk, all environmental variables are lost

Each time I use eb deploy to deploy a new version of my Django app to Elastic Beanstalk, it acts as if it has successfully deployed and then all requests start failing. If I ssh into the actual ...
1
vote
1answer
152 views

setup ssl on nginx for a django project

I want to setup ssl for nginx, my project is a django and i also use gunicorn as wsgi http server. I add following lines in my settings.py code : CSRF_COOKIE_SECURE = True SESSION_COOKIE_SECURE = ...
0
votes
0answers
9 views

Number of Apache ModWSGI threads for Django App?

Is there any point of specifying the number of threads for a Django app running in Apache's ModWSGI, and if so, what would the optimal value be? This post explains how to best select the number of ...
-2
votes
1answer
187 views

Sending emails via django does not work on Gunicorn / NGinx`

I am trying to send an email from my django application. However, this does not work on my NGINX (used for static resources) + GUNICORN Server. But, the same works on django's default webserver. I ...
1
vote
1answer
27 views

NGINX: Prevent users from viewing website on port (example.com:5000)

I've setup an ubuntu VPS, which is running a django app. I'm using waitress as a WSGI server and whitenoise to serve static files. Also nginx serves the media folder. The current setup works great at ...
1
vote
0answers
42 views

Supervisor doesn't run gunicorn with django

I want to run supervisor in my Django server with gunicorn and Nginx, but when I run "supervisord" the supervisor log says: 2015-11-06 23:23:36,746 INFO daemonizing the supervisord process 2015-11-06 ...
1
vote
1answer
20 views

Running a script before packages are installed from requirements.txt

My app has some prerequisite conditions that mean that the installs from requirements won't work until a few scripts are run. I've been reading through the documentation on customizing the Python ...
1
vote
0answers
34 views

Health-check daemon doesn't send Host header

I have a django application running behind nginx. All of it is running behind a load balancer. Load balancer is using HTTP health-check to enable/disable nodes. The problem is that health-check ...
0
votes
1answer
57 views

installing local readthedocs with uwsgi

I'm trying to setup a local instance of readthedocs for managing project documentation. I believe I've got everything installed properly with readthedocs and it's dependencies in its own virtualenv, ...
0
votes
0answers
173 views

duplicate upstream “app_server” in /etc/nginx/sites-enabled/django (nginx, Django)

I have an error with my nginx setup. I use digital ocean, and tried to point my domain to my droplet (a digital ocean partition) and when I visited it, I get a blank django app: Using the URLconf ...
0
votes
0answers
150 views

Nginx 502 Bad Gateway

Server X and Server Y are two virtual machines in different locations running with the same specs: Ubuntu 14.04.3 LTS 64-bit 8 CPU cores 12 Gb RAM They are both running the same Django application ...
0
votes
0answers
9 views

What is the default way on self sign on for new mailing list users on Mailman 3

With splitting up Mailman into a core daemon and the Django based app Postorius it appears there is no clear way for a new user to register on it's own for an existing mailing list. The user on ...
1
vote
1answer
518 views

504 Gateway Time-out uwsgi + nginx django application

I'm trying to run my Django application using Nginx + uwsgi, but I receive 504 Gateway Time-out after one minute of loading. My app takes time to do what needed as it searches for specific things on ...
0
votes
0answers
79 views

Heroku H12 error logs explanation

I am running a django application on Heroku. This is the procfile web: newrelic-admin run-program gunicorn speedyvenues.wsgi -w 3 --timeout 60 --keep-alive 5 --log-level debug There is request that ...
1
vote
0answers
104 views

Didn't receive any response from local server in the machine

So I've server linux using NGIX with docker and many Applications django with UWSGI. So I need to create a job to execute inside a container of docker. This jobs will do a request to a some url of ...
0
votes
1answer
47 views

After moving a Django application to a new project on the same server it is still using the original project settings.py

Setup: Django version 1.4, using Supervisor, NGINX, gunicorn, and postgresql 8.4. I have two Django projects hosted on one server, and one is leaving the server. There is an important application ...
1
vote
0answers
69 views

Unable to diagnose downtime / memory issues with Apache and mod_wsgi

I have an Ubuntu EC2 instance (t1.micro, 600mb of RAM) running mod_wsgi on Apache, to serve a Django app. This is all behind a load balancer. The problem I keep running into is that I can only seem ...
-1
votes
1answer
38 views

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 ...
0
votes
0answers
60 views

Apache mod_wsgi virtualenv

I would like to install mod_wsgi for my apache server. I've seen in the documentation that I have 2 ways to install: 1. directly for the apache 2. with pip In case I install it with pip, as far as ...
1
vote
1answer
40 views

Deploying django website only for local network?

I developed a website with Django and I am deploying it with apache and mod-wsgi (as explained here). The catch is that I want to make sure that this website is accessible only on my local network. ...
0
votes
0answers
28 views

Configure Apache for Django

I have an apache2 server which serves the Django application and also reverse proxies another server. But this server is still in development stage and crashes a lot. The GET/POST requests for this ...
1
vote
1answer
498 views

404 when serving static files with docker+nginx+django/angularjs

I'm following the configuration given at this repository. I decided to keep my docker configuration and actual code in separate repositories - I'd clone the code repo using the Dockerfile. I'm using a ...
1
vote
1answer
280 views

Risks of using django manage.py runserver for production in a small scale server, for internal use?

I am writing a small web-app with django. It will have no more than 200 users, all internal to my company. I want to set it up as quickly as possible. I am new to django and web-apps. As I read ...
1
vote
0answers
353 views

recv not ready (11: Resource temporarily unavailable)) (nginx/1.1.19, supervisorctl, gunicorn )

I have site on Ubuntu 12.04.5 LTS, django (supervisorctl, gunicorn). It work 1 year without problems, but today my zabbix server sending me messages about alerts (every 3-7 minutes) about timeout (for ...
0
votes
0answers
150 views

uwsgi_proto_uwsgi_parser(): Resource temporarily unavailable

I'm running uwsgi this way : sudo uwsgi - - socket /run/uwsgi/app/myapp/socket.http --wsgi-file /usr/share/nginx/myapp/wsgi_websocket .py - - chmod-socket=666 - - buffer-size=32768 I'm getting ...
0
votes
1answer
27 views

Why web frameworks should be hosted on web servers?

I just started in the hosting world, and something that I haven't been able to fully understand is why web frameworks need to be hosted in web servers? Recently I had a website runing over django, ...
2
votes
0answers
750 views

uwsgi and “No module named django.core.wsgi”

On a fairly vanilla FreeBSD system without virtualenv, I'm having trouble getting uwsgi to work with Django. Attempting to run generates this error: Traceback (most recent call last): File ...
0
votes
0answers
55 views

Deploying Django application as Wordpress subpage (at sub url), mod-wsgi

I have a Wordpress blog, let's say that it's address is like yakblog.org and it is a Wordpress blog installed on Ubuntu 12.04 server. Now, I would like to run a Django application as one of the sub ...
0
votes
0answers
56 views

Elastic Beanstalk, EC2 and Rackspace with Solr

We are currently working on an e-commerce startup and we obviously don't know the number of users that will hit out site (expect it to be highly variable). I'm using a custom implementation of Django ...
0
votes
1answer
201 views

Removing port from nginx redirect

I have a domain so www.mysite.com running app Django. In this server I created a Blog with WordPress. www.mysite.com/blog Nginx Django app: upstream django { server 127.0.0.1:8001; } server { ...
2
votes
1answer
60 views

How can I install libmemcached on Openshift with sasl support?

I need libmemcached with sasl support to use Memcached Cloud cartridge on Openshift Online. I doing next: 1) Install sasl. curl -LO ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz tar ...
0
votes
0answers
333 views

Nginx 400 Bad Request on ec2 Public IP works, but domain name does not

A couple days ago, my ubuntu t2.micro ec2 instance stopped working. I just got it restarted again, but now only my public IP address given by amazon works. The domain name I bought does not. It worked ...
0
votes
1answer
64 views

SSL off for a specific URL Nginx

This configuration was working before, and now it is not. I should mention this is Django,Gunicorn, and Nginx. We are trying to make https://toontowninfinite.com/rpc/ use http, not SSL. and the rest ...
0
votes
0answers
42 views

Nginx proxying fails for django

I have a django app running on django server on port 8000 in Chrome. I have another application server running on port 9000. I want nginx to proxy requests to /api/ sent from django app and forward ...
0
votes
1answer
351 views

nginx - 502 Bad Gateway ubuntu 14.04 aws ec2 django project + gunicorn

I'm trying to get my django project up and running on an aws ec2 instance. I'm using gunicorn with nginx, and I'm not really sure how I can tackle this problem. I've spent a couple hours on it ...
1
vote
1answer
36 views

Constant server pings

I've got a Python/Django app hosted on Heroku, monitored on New Relic, with logging tracked on Logentries. I've noticed a large amount of logs that are of the form: at=info method=HEAD ...
0
votes
1answer
264 views

Running Nginx as reverse proxy for gunicorn and apache2

I want to use nginx as a reverse for apache and gunicorn location / should be handled by apache location /webapps/should be handled by gunicorn upstream gfbu_app_server { server ...
-1
votes
1answer
349 views

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 { ...