Re: defining guid, permalink for feeds and site

2013-04-20 Thread Michael Hernandez
Yes that is a great idea. create a base model that inherits from models.Model add the method into it. Any model that can be slugified and access directly should inherit from this Make sure to use model.pk in building the slug, it will always be the primary key, rather than model.id which could

defining guid, permalink for feeds and site

2013-04-20 Thread surya
In our website, for short urls we are using a different domain name.. So, get_absolute_url() in model methods uses django.core.urlresolvers.reserve() and thus returns the actual domain name Till now we have been manually defining short urls in views like permalink = settings.SPC['short_URL_roo