0
votes
1answer
29 views

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
0
votes
0answers
2 views

Cannot connect to webserver from outside LAN [migrated]

I am running the Django development server on a computer at home on 0.0.0.0:80. I am also running an SSH service on port 22. I have configured my router (Virgin Media Superhub 2 with external IP ...
1
vote
1answer
107 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
-1
votes
1answer
54 views

Time out when access localhost for ec2 ubuntu server

I am trying to access the local host for my ubuntu server hosted on ec2 when I run python manage.py runserver 0.0.0.0:8000 I have my security setting set to port 80 0.0.0.0/0 and I want ...
0
votes
0answers
37 views

Run Django on Gunicorn with Python 3.3

How would one go around to run Django on Gunicorn using Python 3.3 on an Ubuntu 12.04 LTS Server? As Ubuntu 12.04 LTS is dependend in Django 2.7, Python 3.3 has to be installed side-by-side with ...
1
vote
1answer
167 views

Ubuntu 12.04 Server - Django with uWsgi not working

I am fairly new to working with servers. I am attempting to run Django on an Ubuntu 12.04 AWS with uwsgi & nginx. I found a tutorial that I was following: ...
0
votes
2answers
56 views

Setting up mail delivery to Django on Ubuntu

I have a server running Python 2.7 and Django 1.6. I'd like to allow Django to send and receive emails with as little overhead as possible. I'd prefer not to even have a Mailbox set up for Django. ...
0
votes
1answer
99 views

Why am I getting a 403 in attempting to access view-source:https://ccachicago.pragmatometer.com/admin/static/css/base.css?

I've been trying by hook or by crook to get /admin/static/ served up in an Apache SSL VirtualHost, preferably by Apache (which is forwarding SSL traffic to a Django Gunicorn instance), or barring ...
0
votes
0answers
323 views

Abormal error when attempting to restart gunicorn on ubuntu server

im running a fabric script that, amongst other things, is supposed to restart gunicorn on an ubuntu server, the command is below: supervisorctl status projectname:gunicorn | sed "s/.*[pid ...
0
votes
2answers
134 views

How can I get django-registration emails sent?

I have a Django project on a Saucy EC2 instance, with a site's registration handled via django-registration, and after a few minutes and a few tries to register different email addresses, I am not ...
1
vote
0answers
189 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
0
votes
1answer
229 views

What exactly is an invalid HTTP_HOST header

I've implemented Django's relatively new allowed hosts setting, which is meant to prevent attackers from submitting requests with a fake HTTP Host header. Since adding that setting, I now get ...
0
votes
0answers
84 views

Ubuntu 12.04 64-bit virtualenv memory limit

We have a server running 64-bit Ubuntu 12.04, which is serving a django application running under virtual environment, along with a celery worker. The problem is no process in the server uses more ...
1
vote
2answers
535 views

Celery with Upstart - processes are dying unexpectedly

When I'm running Celery with Upstart, after a while, the child processes or the main processes die without any trace. The Upstart script I'm using (/etc/init/celery): description "celery" start on ...
0
votes
0answers
73 views

Issue with Nginx and Gunicorn with POST requests over ~8kb

I have a very peculiar issue with Nginx, Gunicorn and Django. Here's a breakdown of what I'm experiencing: Post requests > ~8K that go through Nginx to Gunicorn to a valid Django URL/view fail. ...
0
votes
1answer
227 views

Gunicorn error: “Error opening file for reading: Permission denied”

I'm getting an error when running my Django app with gunicorn: when I make a post request over 7800 bytes I see the following error from gunicorn: "Error opening file for reading: Permission denied". ...
0
votes
1answer
434 views

Apache as a reverse proxy not working for gunicorn

My Goal is to let client connect through https connection but apache serve it to my application which is running on same server over http. Here is my minimalistic apache configuration file (for ...
0
votes
2answers
106 views

ubuntu linode server 404 error with django mod_wsgi [closed]

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually ...
0
votes
4answers
292 views

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is ...
0
votes
2answers
2k views

ubuntu + nginx + uwsgi + django No Python application found

I am trying to setup my server with a nginx to uwsgi to django stack, but I am having problems with the uwsgi part. When I run uwsgi and pass in all the parameters on the command line, it works ...
5
votes
1answer
86 views

Storing secure keys on Ubuntu web server

I'm running Ubuntu 12.04 Precise with a DUNG (Django, Unix, Nginx & Gunicorn) environment and my app (as well as various config files) is stored in a python virtual environment inside /srv, which ...
1
vote
0answers
86 views

Deploy multiple django instances on one Host

I am trying to setup multiple Django instances on one Host with lighttpd. My problem is to get Djangos FCGI working on subdirectories served by my Webserver. So my aim is the following: ...
0
votes
3answers
268 views

MySQL Not Turning On

I have an amazon ec2 instance running on the Amazon Linux AMI and its a micro instance. I wanted to install Django onto my server so I entered these commands wget ...
0
votes
1answer
375 views

500 Internal Server Error when setting up Apache on Ubuntu+Django

I tried with Apache on ubuntu 9.04 and get the same error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact ...
0
votes
2answers
405 views

How to configure Apache2 to host Django and PHP on multiple domains simultaneously?

I have a VPS (Ubuntu 10.04) that hosts multiple domains, one of them being a CodeIgniter (PHP) web app. The others are just static websites, no fancy backend languages required. Well I am starting a ...
0
votes
1answer
155 views

How to add php to a linux (ubuntu) server already running nginx + gunicorn + django

I have been running a django app on nginx using gunicorn on Ubuntu (now version 12.04) for some time now, and have been pleased with the results. My issue is that I have inherited a php site which I ...
4
votes
1answer
471 views

Celery Daemon receives unregistered tasks

I installed Celery for my Django project following what the official tutorial / doc says. And it's working fine when I launch celery at the command line, I can see it receiving the tasks and execute ...
0
votes
1answer
227 views

Running two wsgi applications on the same server gdal org exception with apache2/modwsgi

I'm trying to run two wsgi applications, one django and the other tilestache using the same server. The tilestache server accesses the db via django to query the db. In the process of serving tiles ...
0
votes
1answer
275 views

Starting a Amazon EC2 Free Tier with Ubuntu and Django [closed]

I'm planning to begin a Django project that may (or may not) grow to be a pretty big thing. So I wanted to start out well: buy my public DNS (not sure yet if with Google Apps or any other domain ...
1
vote
2answers
396 views

Why Won't Apache Fully Stop or Restart? I have to manually Kill every time

I have a configured EC2 server running Ubuntu 11.10 running a Django App on Apache2/WSGI. This server works perfectly, stops and restarts without any problems. When I clone this instance, everything ...
2
votes
5answers
5k views

Postgres used in Ubuntu 12.04

I am trying to get django running on an ubuntu 12.04 release using postgres (clean install). To get it running it used to be that you would have to edit the /etc/postgresql/9.1/main/pg_hba.conf file. ...
2
votes
1answer
650 views

How to reduce celeryd memory consumption?

I'm using celery 2.5.1 with django on a micro ec2 instance with 613mb memory and as such have to keep memory consumption down. Currently I'm using it only for the scheduler "celery beat" as a web ...
0
votes
1answer
97 views

Server performance worsened after a hardware upgrade: how should I reconfigure the server? [closed]

I'm running a site on an Ubuntu/Apache/Django/PostgreSQL stack. We upgraded our server recently from 1 processor with 2 Gb total RAM (with 0.5 Gb of that RAM assigned to memcached) to a new server ...
1
vote
0answers
177 views

What's the ideal Ubuntu operation setup for running a Django webserver? [closed]

What's the ideal Ubuntu operation setup for running a Django webserver? When I started working in Django 2 years (or so) ago it was an nginx front end to serve up static medica and Apache running ...
-2
votes
3answers
784 views

Ubuntu 11.10; Python2.7 wanted on libapache2-mod-wsgi insted of Python2.6

I have trouble with configuring a Django server in mode wsgi with Ubuntu 11.10. Here is the problem: the latest ubuntu 11.10 has python2.7 as default. Installing apache2 and libapache2-mod-wsgi expect ...
3
votes
1answer
514 views

Analyze uwsgi strace log to find out why it takes high CPU usage

I'm running a django site with nginx through uwsgi. The problem is uwsgi process take a lot of CPU time when traffic become heavy. The same configuration works fine on test server and siege/ab ...
0
votes
1answer
145 views

Running Django test server on Amazon instance

I am trying to run basic Django app on Amazon like: managy.py runserver 80 It starts running, but I can't connect to Django from browser to this port, FF can't connect. My Security Groups are set up ...
2
votes
2answers
676 views

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, ...
4
votes
1answer
499 views

Gracefully Restarting Django Celery Instances

I'm wondering what the best way to restart Celery is without losing any tasks during the restart. I'm currently running it as a daemon using the init.d/ script provided with celery - everything is ...
0
votes
1answer
198 views

Apache + mod_python - can't configure server

I have got Ubuntu 10.04 (XEN) VPS. I want to set up Django server. I use apt-get to install django packages, apache, apache-mpm-prefork. Before using this configuration I saw "It works!" title, when I ...
0
votes
1answer
169 views

Performance Problems Started - How to Debug (Ubuntu + Django/Python)

I have a VPS running Ubuntu 10.10, with a Django application running on top of it (MySQL database, Redis datastore, apache + mod_wsgi in daemon mode). Over the last few days, we've been experiencing ...
0
votes
2answers
95 views

Download Django 1.3 Official Release Fail

When I try to download the 1.3 version of Django in Ubuntu 10.4, it saves it as index.html. wget http://www.djangoproject.com/download/1.3/tarball/ I've done this successfully in the past. ...
1
vote
3answers
457 views

How to let python/django to access postgres db without requiring sudo -u

Still new in the Linux / django / python / postgres installation. I have install the latest kubuntu 11.04, installed the postgres and django packages. I have created a django_login in postgres with a ...
3
votes
2answers
947 views

Attempting to run Django with start Apache2 mod_wsgi on Ubuntu Lucid Lynx without success

I have a small vps with a minimum install of ubuntu lucid-lynx with about 256mb memory, it's newly installed with nothing special running on it. I'm trying to deploy django to it, while I'm ...
0
votes
1answer
705 views

Server running on guest virtualbox is not visible from host?

I'm using virtualbox to run an Ubuntu server from os x. I have NAT and bridged connections set up and I am able to ping back and forth, ssh into the guest box, transfer files with scp, etc. However, ...
1
vote
3answers
724 views

Why, when everything is working properly, an apache restart writes into error.log?

This is just a minor nitpic, but I wonder if anyone can tell me the reason - when I restart apache, these lines get written into /var/log/apache2/error.log [Thu Mar 24 10:20:56 2011] [warn] mod_wsgi: ...
6
votes
1answer
852 views

Install problems with XSendFile on Ubuntu

I installed the apache dev headers: sudo apt-get install apache2-prefork-dev Downloaded and compiled the module as outlined here: http://tn123.ath.cx/mod_xsendfile/ Added the following line to ...
1
vote
1answer
310 views

django, mod_wsig , KeyError Threading ignored

I am getting this error from mod_wsgi: [Thu Feb 24 23:31:33 2011] [error] Exception KeyError: KeyError(140115471374144,) in <module 'threading'from '/usr/lib/python2.6/threading.pyc'> ignored ...
0
votes
1answer
496 views

Cant start uwsgi in ubuntu 10.10

When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty I'm folowing ...
0
votes
2answers
768 views

Django installation on Ubuntu + Apache2 +mod_python

This is my personal dev server that I recently started setting up. Although Python works as a cgi and standalone test scripts in Python run fine, Django does not seem to be working. All I see is the ...