Posts Tagged ‘url’

Easily adopt Django’s new {% url ‘…’ %} template syntax

Thursday, March 24th, 2011

If you want to adopt the new recommended syntax but don’t want to add {% load url from future %} to every single template you have, you can simply add the following to your settings.py file:

import django.template
django.template.add_to_builtins('django.templatetags.future')

Now if you just change your {% url %} tags to the new syntax (see here), everything will work fine and will be compatible with Django 1.5 when it is released.

How to get your very own two-letter domain

Monday, October 5th, 2009

I’m sure most of you internet people have heard of the various URL shortening sites out there in the wild. They’re used to make a long and scary URL (which stands for Uniform Resource Locator) into one much more timid and digestible. Blah blah blah. The point is, you may have noticed that all the good ones (tinyurl.com is ugly and commercial and gross, bit.ly is an exception) have a domain that is only two letters long, like tr.im. Now how do they do it?

Most big hosting companies and domain registrars will not only tell you a domain any less than three letters is invalid, but they probably won’t support whichever obscure ccTLD (Country Code Top Level Domain, e.g. .ca for Canada) you feel like owning. There’s no real reason for this, other than that most companies are stupid and don’t know what the hell they’re doing. Especially when it comes to technological stuff like this; the CEO of GoDaddy probably doesn’t have more than a vague idea about how the internet really works. Oh well, more power to the people.

And by “the people” I mean the people at iwantmyname.com. Not only is their service great, with a nice clean interface and a whole six pages of TLDs to choose from, but they accept ANY valid domain, including those with only two characters at the second level.

Screen shot 2009-10-05 at 10.18.08 PM

It’s a great service, and I’ve used them to buy all two of my two letter domains. I even started a little URL shortening service of my own, called zi.gs, just for fun. I took it down a while ago after it became boring and tiresome to provide support for.

Anyways, there you have it. Easy two character domains, supporting lots and lots of TLDs.

ZI.GS updates: captcha removed, API in progress

Friday, July 10th, 2009

Robots rejoice! ZI.GS no longer requires a Captcha challenge-response in order to create short URLs. It was removed to make the service smoother and easier to use. Since most other services did not have them, it seemed to be more annoying than useful.

Also, plans for the future! A ZI.GSĀ API (Application Programming Interface) is in the process of development. This will allow programmers to design alternative (and even system-native) interfaces for exactly the same service.

So what are you waiting for? Shorten your URLs at ZI.GS!