0
votes
4answers
110 views

Trying to use virtualenv Django 1.4.1

I have Django 1.2.1 on the server. I need to use virtually Python to install Django 1.4.1 and an adapter to PostgreSQL which I want. I am trying to set up this software on my server. So I run ...
0
votes
0answers
729 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 ...
1
vote
0answers
76 views

How do I allow www-data to (negatively) change the niceness of a process in Linux?

So I'm running a website using django and sometimes I call scripts located on the server by spawning a subprocess in python. When looking at the processes with "top" I see these are called under the ...
-2
votes
1answer
96 views

idle proccesses and high memory bad? uwsgi/django

I have a VPS with 256MB of ram. I'm running nginx, uwsgi and postgresql on Ubuntu 12.04 for a soon to be Django site. About 200MB of ram are being used despite the website not being active, the uwsgi ...
2
votes
1answer
67 views

Apache2 server using a lot of CPU

The output of top Tasks: 68 total, 1 running, 67 sleeping, 0 stopped, 0 zombie Cpu(s): 96.0%us, 3.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 3840492k total, 1175776k ...
0
votes
1answer
69 views

Deploying django for lot of sites with low traffic [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am looking for advice for our web server configuration. SaaS model startup (same app, different databases and subdomains). ...
1
vote
1answer
31 views

where is the configuration for https host Django+PHP

I am an app developer, with little web site development experience, now having to check some work on a virtual server, All seems to be working fine, but I cannot find where a configuration for a host ...
0
votes
2answers
551 views

Permission issue for apache

Environment Details: Amazon Ec2 Ubuntu 12.04 Django + mod_wsgi + python 2.6 web server: apache2 I have mounted a 10GB ebs volume to an instance to /mnt/ebs1/. After mounting the volume and ...
1
vote
3answers
2k views

gunicorn + django + nginx unix://socket failed (11: Resource temporarily unavailable)

Running very high volume traffic on these servers configured with django, gunicorn, supervisor and nginx. But a lot of times I tend to see 502 errors. So I checked the nginx logs to see what error and ...
1
vote
2answers
303 views

multiple instances of nginx in order to keep Django projects separate

I'm building an app using Django + PostrgreSQL + Nginx on Debian 6. The app has two separate components, that will later be on different machines. Component A calls one function from Component B ...
-2
votes
1answer
130 views

One of my websites stopped working without apparent reason. Help me figure out why? [closed]

Hello I'm running unmanaged VPS at Hetzner with Ubuntu Linux. I use Apache to serve webpages and I have 8 websites on it. One particular website stopped responding without reason. Nobody touched ...
3
votes
2answers
523 views

How can I run two Django versions in the same server?

i've got two web apps. One was developed using Django 1.0 and the other using Django 1.4. How can I run both apps in the same apache2 server using two versions of django? Somebody told me something ...
3
votes
1answer
1k views

virtualenv gcc error MySQL-python

I am trying to install MySQL-python through PuTTY with virtualenv. Specs. *CentOS-6.0 *Python2.6 So I have read many sites and the biggest thing I see is python-dev, and python-devel(btw I don't ...
0
votes
1answer
151 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 ...
4
votes
1answer
643 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 ...
1
vote
0answers
340 views

(Linux) Python is stopped - preventing me to start a Service

I'm currently running CentOS 5.5 on my machine, and I'm trying to setup a Build Server using Django, MySQL and Apache. I have basically no experience with any of those, and I've been researching on ...
0
votes
4answers
528 views

502 error after adding module to a Django project running on nginx and gunicorn

I am trying to add a module to an existing Django project, but once I have done it I get a 502 error. The server is running Ubuntu. I don't think it has to do with the applications code because I got ...
0
votes
2answers
330 views

Crontab not running

I am using putty to login in webfaction server. I used crontab -e command and wrote this line over there and restarted apache. According to this line it would run every minute but even after ...
0
votes
2answers
581 views

Can't restart Apache (HTTPD)

Apache has been running fine for months and restarts have run fine. However I went to restart it today and got this: [django - pin@e02u35]~>sudo /etc/init.d/httpd restart … Starting httpd: ...
0
votes
2answers
301 views

Want to upgrade python for django

I would like to upgrade python for django. Currently I have python 2.4.3 on my Red Hat server. I have installed python 2.7.1, but the default python is still 2.4.3 (It didn't upgrade python, but ...
0
votes
2answers
101 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. ...
0
votes
2answers
122 views

How much maximum time i can keep django server running

I run django server using /opt/python27/bin/python manage.py runserver But the command prompt says Quit the server with CONTROL-C. I want to know that can i keep it running all the time. ...
0
votes
1answer
78 views

Where are my installed files on Amazon?

This sounds like a real noob question but I cannot figure this out. I'm trying to get Apache, mod_wsgi and Django playing together on my EC2 instance. So I've installed mod_wsgi using the root user ...
0
votes
2answers
270 views

Deploying a Django app

I want to put my Django site in /usr/local/django/mysite. Does it matter whether this directory is owned by root or as a lower-level user? I'm probably going to have developers push code changes to ...
1
vote
1answer
153 views

What's happening when Apache's httpd %mem climbs 20+ and the CPU's %wa is running high?

I'm encountering unfamiliar Apache symptoms and I'm curious if anyone here knows how to diagnose them. I've got a pair of app servers running mod_python and Apache, recently upgraded to Django 1.2.3. ...
0
votes
1answer
628 views

Preventing Django app from causing Linux box to run out memory

One of my Linux web servers recently ran out of memory, hung itself in an OOM kill frenzy, and had to be rebooted. This is a 512 MB VPS, but it has been running without problems since it was set up ...
1
vote
4answers
286 views

Securing Django deployment on Ubuntu server

I am just starting out with Django and want to deploy a test application on a Linux VPS that I have. I am not familiar with how I can secure the deployment. If I configure Apache to serve the ...
1
vote
4answers
458 views

How come my Apache can't read my media folder, but it can load the site? (static files don't work)

Alias /media/ /home/matt/repos/hello/media <Directory /home/matt/repos/hello/media> Options -Indexes Order deny,allow Allow from all </Directory> WSGIScriptAlias / ...
1
vote
1answer
1k views

Celery and Django : How to start at boot in production env (linux)

I have an app that uses celery and django to run distributed tasks (like send email, crawl web,etc). The app never was in prod, so I always start celeryd with ./manage celeryd. I want to setup a ...
2
votes
1answer
1k views

Using gentoo, how does one stick -9999 ebuild to a specific svn revision?

As an example given the django-9999 ebuild, to match a developer's environment I need to checkout R12120 from trunk. Installing Django manually is not an option due to package management reasons. But ...
6
votes
3answers
777 views

Development, Testing, Staging and Production model

I'm developing a run of the mill django powered website with a Postgres database. I develop locally and have 3 VPS servers for Testing, Staging and Production. Each VPS runs their own Linux / Apache ...
6
votes
3answers
2k views

Is it possible to run automatically celery at startup?

I have python server based on django and celery. Each time computer restarts, apache2 starts so my server is working, BUT I have to restart celery manually (going to my project directory and executing ...
0
votes
1answer
760 views

Django setting environment variable globally

I'm having a problem setting up Django on our CentOS server using mod_python. Site 'A' is running PHP (Codeigniter) and site 'B' is running Django. Our Django site is running perfectly. However, ...
1
vote
5answers
3k views

How do I find the Python executable that my server is using?

I'm new to Linux. I'm managing a (Linux - Apache - mod_wsgi - Django) server, where there are multiple installations of Python. The site is currently working, but I want to find out which executable ...
1
vote
5answers
305 views

Please critique my website file layout

I am configuring a linux webserver to support several different websites, using Django and Apache2. I have Django code for each site, some libraries supporting each of those sites, and the Apache ...
4
votes
2answers
1k views

Which Linux distro should I use for Apache, mod_wsgi, Python, Django, PostgreSQL deployment?

Currently we are running CentOS for our production servers. Wer're deploying Django projects with Apache 2.2, mod_wsgi and PostgreSQL. We are in the process of making Python 2.5 the default version. ...
3
votes
3answers
745 views

What's the optimal way to set up a Django server to serve multiple sites?

I currently use Apache 2.0 and FastCGI to serve my Django sites (I host multiple sites from a single server / IP). Each site has it's own FastCGI process which stops Apache forking multiple copies ...