Django Quickies

Debugging in templates <pre>{% debug %}</pre> <pre>errors {{ form.error_dict|pprint }}</pre> <pre>data {{ form.data|pprint }}</pre> Example of Edit Inline models.py class Poll(models.Model): question = models.CharField(maxlength = 200) class Choice(models.Model): poll = models.ForeignKey(Poll, edit_inline=models.STACKED, num_in_admin=3) choice = models.CharField(maxlength = 200, core =

NHL is getting new uniforms

Well, this isn’t huge news, there are a lot of sports fans out there that think this is bad news. This may be very similar to what all NHL teams will have to change their uniforms to: http://static.flickr.com/94/278602619_63c275be27_o.jpg http://static.flickr.com/112/278602626_25f82e08d0_o.jpg Notice

Web-developer goodies

Take any page that has some images on it, and paste the following into your URL/Address bar: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i Everyone needs a mod-rewrite generator, right? http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml