I'm new to Linux and am trying to set up Python / Django on my machine! I installed Python 3.3 from the source file and it was compiled into /usr/local/bin.
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
I know that I can run a python script from my bash script using the following:
python python_script.py
But what about if I wanted to pass a variable / argument to my python script from my bash script. How can I do that?
Basically bash will work out a filename and then python will upload it, but I need to send the filename from bash to python when I call it.
$ 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
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 :)
I have a problem running Django with mod_wsgi and Apache on CentOS.
Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks other services such as yum. I installed Python 2.7 into different directory.
I followed most of the tutorial and article about running Django with mod_wsgi but never able successfully run it.
From the Django-Documentation:
The django-admin.py script should be on your system path if you installed Django via its setup.py utility. If it’s not on your path, you can find it in site-packages/django/bin within your Python installation. Consider symlinking it from some place on your path, such as /usr/local/bin.'
How do I 'symlink' and how do I know when I need to do it?
I have this weird issue on my Mac OS X 10.7.5
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found
What caused the above error?
Hello all,