Everybody knows about
permalink, but it's usually used only in
get_absolute_url. I prefer to use it for all related model urls.
class Event(models.Model): # ... @models.permalink def edit_url(self): return ('event_edit', (self.pk, ))
And then in template:
Lead management is an important part of the marketing strategy of every company of any size. Besides automating various business processes, privately-held organizations should consider implementing an IT solution that would help them manage their leads. So, how should you make a web-based leads management system for a University in order to significantly increase sales?
When we use css-sprites it's important to make browser cache them for longest period possible. On other hand, we need to refresh them when they are updated. This is especially visible when all icons are stored in single sprite. When it's outdated - entire site becomes ugly. To solve this task I've implemented this small script that adds file's hash to url:background-image: url(images/icons.png?a3844c660);