You can access the Django request within a Template Tag by enabling the request context processor.
If you’re using a generic view, for example, ‘direct_to_template’, your render() function will then be passed a RequestContext , and you can access the request by context[‘request’].
If you’re not using a generic view, and are using render_to_response(), then you have to explicitly pass context_instance=RequestContext(request) as the third parameter.
You enable the request context processor by adding this to your settings file:
Just finished my first year of learning spanish. Here’s a page with links to various things I found useful: podcasts, TV shows, and books - Learning Spanish
Trying to get a Wii Fit is almost impossibile - none of the shops have any in stock. Even Amazon has stocks only for a few minutes each time they get some before they’re all gone. Very frustrating! So one quiet evening, I wrote a real-time stock checker to tell me when they were in stock.
And now I’m the happy owner of a Wii Fit, and very excellent it is too…
A new website I’ve been working on… http://www.howsafeisyourmoney.co.uk
Looking for a way of going swimming/kayaking/windsurfing with your iPod? I can thoroughly recommend the H3 headphones and iPod Shuffle case, both made by H20 Audio. I go swimming a lot, partly because I’m doing the Marie Curie Swimathon this year, partly because it’s a good way of getting fit.
But, boy, can it be boring! plodding up and down watching the clock to see whether it’s time to stop.
You need to install php5-mysql.
And then don’t forget to restart Apache. Just reloading won’t work.
For when you need to resize the partition you usually work in
GParted LiveCD
And for when you’ve muffed up your grub installation, and can’t work out how to use grub-install
Super Grub Disk
The obvious cause of this is that the settings.py doesn’t have the directory containing blah listed in INSTALLED_APPS. A less obvious cause: you’ll also get this error if the directory doesn’t contain a file init.py.
The Audacity documentation isn’t exactly clear on this… Trial and error led me to the right answer - copy the plug-ins directory from the installation .dmg to Applications/Audacity.app/Contents/MacOS i.e. the same directory as the executable.
From http ://ubuntuforums.org/showthread.php?t=207847,
$ sudo aptitude install x-window-system-core gnome-core gdm firefox synaptic xubuntu-system-tools gnome-app-install