I'm trying to setup Django w/ MySQL.
I've got Apache and mod_wsgi up and running, and am now trying to introduce django to mysql.
I've created a database named 'django' and a 'django' user.
I've granted all to django on django:
grant ALL on django.* to 'django'@'localhost';
Django's settings.py has been configured with MySQL's settings:
DATABASES = {
'default': {
'ENGINE': 'djan
I have installed Python 2.7 but still kept Python 2.4. When I enter the command python, it runs python 2.4 and I want to keep it this way. But how to I set Django to use /usr/local/bin/python2.7 when it runs?
[EDIT]
It is running on Apache with WSGI
Hi,
Been struggling with setting up web server on my CentOS 5.5 install on a VirtualBox VM. to serve up django for a while - having limited success adn would appreciate any help I can get. I followed the sets at http://www.freshblurbs.com/tutorial-...1-1-centos-5-4. But the website did not materialize.
hey guys am learning the django frame work as am interested in using the python modules for developing websites. can somebody suggest me a good IDE for working with django?can i be using eclipse with it? and also since am new to python and django i would also be glad if am given suggestions :)
$ ps | grep django
28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat
51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO
51472 ttys005 0:01.29 /usr/bin/python bin/django celeryd -l INFO
51510 ttys005 0:01.89 /usr/bin/python bin/django celeryd -l INFO
51801 ttys005 0:01.83 /usr/bin/python bin/django celeryd -l INFO
53470 ttys005 0:03.97 /usr/bin/python b
I am not able to install Django.I am using CentOS 5,not able to set python2.7 environment variable.Priviously in my system python2.4.3 is available,but after installing python 2.7 in the terminal i checked the version avail in system using "python -V"cmd it executed as python 2.4.3.But if i checked using "python2.7 -V"cmd it is showing python2.7.Please help me with this.....
1.I need to set pytho
I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and mod_wsgi, and using nginx for loading static files.
I am running Ubuntu 12.04 on an Ec2 box.
I am trying to get a django website up and running using WSGI. The box is running centos 5 with python 6.
I'm currently using CentOS (512 RAM, Dual-core CPU) for my website. Here are the specs:
Django 1.3.1
Python 2.7.2
Apache 2 with mod_wsgi 3.3
MySQL 5 (about 5,000 records)
Memcached (120 MB for running)
Nginx for serving the static content
When my site has 2,000 visitors at the same time, the CPU usage reachs about 40% of total. And with 10K visitors, CPU is 90%-100%. The site is very slow.