Fix Python – Call Python script from bash with argument

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….

Fix Python – python-dev installation error: ImportError: No module named apt_pkg

I am Debian user, and I want to install python-dev, but when I run the code in the shell as a root:
# aptitude install python-dev

I get the following error:
Traceback (most recent call last):
File “/usr/bin/apt-listchanges”, line 28, in
import apt_pkg
ImportError: No module named apt_pkg

What seems to be the problem and how….

Fix Python – Setting Django up to use MySQL

I want to move away from PHP a little and learn Python. In order to do web development with Python I’ll need a framework to help with templating and other things.
I have a non-production server that I use to test all of web development stuff on. It is a Debian 7.1 LAMP stack that runs MariaDB instead of the common MySQL-server package.
Yesterday ….