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

0
votes
0answers
11 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
8 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
28 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 { ...
1
vote
0answers
14 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
36 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
33 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
15 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 ...
-1
votes
0answers
17 views

Sending emails via smpt on FastCGI

I am using django 1.6.5 on FastCGI server (Windows Server 2012 R2) and am trying to send crash report emails via smtp.gmail.com on port 587. In the development environment the settings work perfectly, ...
0
votes
1answer
43 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
30 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
20 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
34 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 { ...
1
vote
1answer
43 views

nginx suspicious symbols warning in my nginx config file

My nginx configuration file is given below. server { listen 80; server_name http://hg.rawdatatech.com; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; ...
0
votes
0answers
75 views

no module named 'project' in gunicorn using Django 1.8 & python 3.4

I've deployed with ansible a project using Django 1.8 and python3.4 in a virtualenv folder. For my projects including settings and wsgi in a config folder it works, the deployment is fine and it ...
0
votes
0answers
21 views

Django cache per request

I tried to use cache_page decorator in my view (developed in Django of course). But I think it works not like I want to. I thought, that this works like a CDN - One user execute a query and than other ...
0
votes
1answer
34 views

gunicorn behave differently when run from terminal and by service

I am using nginx+gunicorn+django for my website. The following is my gunicorn.conf file: description "Gunicorn daemon for Django project" start on (local-filesystems and net-device-up IFACE=eth0) ...
0
votes
1answer
67 views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
0answers
9 views

Filter to exclude root from tracking

This is probably basic, but I'd like to exclude all traffic to root (/) in Google Analytics reporting. This is because I'm using Django and translations, so all traffic to root gets redirected to /en/ ...
0
votes
0answers
18 views

Nginx reduce waiting time on django

My nginx setup is user root; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include ...
1
vote
0answers
36 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
0
votes
1answer
28 views

Staticfiles for Django cannot be located on IIS 8

I have a Django 1.7 website configured on IIS 8 platform. The staticfiles are kept in a folder generated after running collectstatic command. As mentioned in the tutorials I have made that folder a ...
1
vote
0answers
28 views

Django + gunicorn + nginx concurrent users on default configurations [closed]

I am currently setting up nginx+gunicorn to serve a django app that is going to be used by at most 60 users following THIS tutorial. The app is pretty basic, 6 django forms made out of 10 fields and ...
0
votes
1answer
33 views

mod_wsgi authorization with Django users from postgres database

I am trying to protect a url path with basic auth and want to use the users from my Django application which are stored in a Postgres database. The user app is allowed to access this database, the web ...
0
votes
0answers
38 views

Celery worker timeouts

I'm trying to run a celery worker with each task having a timeout of 30 seconds. However whenever I run celery with the --time-limit option, it simply quits. This is the command I use. python ...
0
votes
0answers
18 views

Django 404'ing on static files

I installed askbot (running through Django 1.5) and the page fails to load static files under /m/ (js and css) returning 404; only the plain page as such is served. The site runs on Apache2, with the ...
0
votes
0answers
173 views

Run shell script as Supervisord subprocess?

I have a Django 1.6.2 application that uses Celery 3.1.7 for asynchronous tasks. I'm starting my Celery workers using Supervisor. So far everything is working well except when I reboot my Debian 7.8 ...
1
vote
1answer
369 views

mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7

I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I ...
0
votes
0answers
158 views

Django / uWSGI - Nginx giving 502 status code: error.log says “Permission Denied”

I'm trying to setup my Django app to use uWSGI and Nginx. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I'm on the "Using Unix sockets ...
1
vote
0answers
182 views

Django uwsgi Nginx not serving media files - Django returns 404 status code

I originally posted this on SO but I think it might belong here instead. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html Everything was going ...
0
votes
2answers
79 views

Why is this Nginx setup not caching responses?

I have Nginx sitting in front of gunicorn, which in turn sits in front of a django application. The core question is "Why are my responses not being cached?" However, I'm pretty green at this, so ...
0
votes
0answers
89 views

Django - Health check for AWS ELB

I'm hosting web application on AWS with Nginx 1.6.3 and django 1.7.6 I have ELB in front of EC2 instance and its ping target is HTTP:80/health_check of EC2 instance. Until now, I've checked EC2 ...
0
votes
2answers
140 views

Python Pip Install fails - Could not build the egg. Also cannot use 1.2.5 because of google cloud sql

I need mysql-python. I get error of could not build egg while installing 1.2.4 Everywhere it says install 1.2.5, which works for me too. But googleAppEngine's app.yaml supports only 1.2.4 ...
0
votes
1answer
163 views

Not able to use mysql in google app engine - Error loading MySQLdb module: No module named _mysql. I am using cloudSQL

I am using googleAppEngineLauncher to try mysql connection. It gives the log File "/Users/kakshilshah/Desktop/hope/skeduleBackend/django/utils/importlib.py", line 40, in import_module ...
0
votes
1answer
80 views

Django process hangs when connecting to database in Apache

I'm having an issue with Djang in Apache. It is running in daemon mode and using worker MPM. The application is mostly a restful API that is serving connections from Mobile devices and external web ...
0
votes
1answer
143 views

Redis and “invalid expire time in setex”

We run a Python (Django) application that temporarily stores data in Redis. Sometimes though it happens that data by the time it gets to get stored in Redis is already expired and therefore setex is ...
0
votes
0answers
210 views

python django venv ImportError: No module named site

I have tried to deploy a django application using apache webserver. I have enabled wsgi_module in apache. Now i have created a virtual environment and installed django in it. Also installed required ...
0
votes
0answers
35 views

uwsgi process not quitting after stopping in django app

I have uwsgi 2.0.10 with django and supervisor. I am running uwsgi with command = /usr/local/bin/uwsgi --ini /var/www/conf/uwsgi.ini --die-on-term When i do supervisorctl stop app-uwsgi I see ...
0
votes
1answer
88 views

How to have Apache route multiple domains to multiple Django projects?

So i'll start off by explaining my goal. I have multiple domains that I am routing to a simple IP address on my server. I want Apache to route each domain to the appropriate wsgi.py file in its Django ...
0
votes
1answer
188 views

why django project failed deploying? - django + nginx + uwsgi

I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess. ...
0
votes
0answers
177 views

502 Bad Gateway from relocated instance on AWS EC2

I tried to move some instance from tokio region (which by the way, it's working normally) to sao paulo region, then I followed this basic steps to perform but when I launch the instance from the ...
0
votes
0answers
63 views

Configure Nginx to only allow specified hosts

I am running a Django Project on DigitalOcean (using Nginx, Gunicorn and Postgres), and I have specified the "allowed hosts" in the settings.py like this: ALLOWED_HOSTS = ['sub.domain.tld'] Based ...
1
vote
2answers
50 views

deploy development and master branch on server with git

I´m using git for a django webproject. I have a bare git repo on my server and push my commits from my local machine into it. I also have a testserver on my local machine but I would like to have 2 ...
-1
votes
1answer
45 views

On-Premise Django deployment

I am developing a Django project that's will be hosted on a client private server (On-Premise mode). I'm new to that because usualy i am deploying my application as SaaS mode, so the client only have ...
0
votes
3answers
158 views

httpd.service Cannot connect to database Centos 7

I'm trying to connect to PostgreSQL Unix domain socket from a python web application with mod_wsgi. Relevant system components: CentOS 7 x64 Python 2.7.5 SELinux disabled PostgreSQL is listening ...
1
vote
0answers
28 views

How do I configure nginx to have a server block pointing towards a django app?

Suppose I have an nginx server, with Django apps set up as "/djangoapps/exampleapp1/" and "/djangoapps/exampleapp2/". Suppose I just registered a domain "www.exampleapp2.com". How can I point ...
0
votes
0answers
93 views

uWSGI reload not picking up new code changes

I've setup a server with nginx and uWSGI to server a django application. I deployed some changes to the server this morning which weren't picked up so I assumed my reload method wasn't working - sudo ...
0
votes
1answer
52 views

access server with ip address and not server name

I am trying to access my server to the following address: https://www.media-rewards.com/ But it doesn't work :(. However, if I use its ip address, it works: https://52.0.245.209/ I don't know ...
0
votes
1answer
108 views

Django mail reports blocked by Gmail

I configured my Django 1.6 framework to send error reports to a Gmail account so I can check them. Before this worked well, though I had to define filters to catch the sender mail addresses I ...
0
votes
0answers
46 views

How to use ssl everywhere except an endpoint

I have a Web site where I want all requests to be done with HTTPS except for requests to urls with paths that start with /out/. nginx is configured as proxy to serve gunicorn/django content from ...
0
votes
1answer
79 views

MySQL spends too much time cleaning tmp tables

I'm running some Django migrations on an AWS RDS MySQL instance. My team has tested the migrations very thoroughly and they ran fine (even taking less than 30 minutes when run on our laptops against a ...