Ever get tired of updating the copyright year on your webpage? Why not update it programmatically? Django templates make it incredibly painless:
© {% now "Y" %} YOUR_NAME_HEREEver get tired of updating the copyright year on your webpage? Why not update it programmatically? Django templates make it incredibly painless:
© {% now "Y" %} YOUR_NAME_HERE
Posted on
Thursday, February 18, 2010
3
comments
Tags: code, copyright, django, django-templates
David M Beazley, a very talented pythonista is gathering data for his talk at pycon. He's doing a little research on the GIL and has asked the community for some help.
You can see some interesting initial data on his test web page (the one whose server he is asking the community to slam).
import urllib2
count = 0
while True:
try:
f = urllib2.urlopen('http://ec2-174-129-96-143.compute-1.amazonaws.com/index.html')
count += 1
print count
except:
pass
Posted on
Friday, February 12, 2010
0
comments
Um... it looks like you're using Internet Explorer. No, no... there's nothing wrong with that, it's just that... well... it kind of sucks.
You don't have to upgrade for this site, but IE has a lot of problems. Please Upgrade to Firefox (don't worry it's free).