Is it ok to hardcode dynamic links in a permanent view?

Posted by meder on Stack Overflow See other posts from Stack Overflow or by meder
Published on 2010-06-17T04:09:25Z Indexed on 2010/06/17 4:13 UTC
Read the original article Hit count: 227

Filed under:
|
|

Let's say I wanted to showcase 2-3 clickable buttons on my homepage which will be there permanently. These are links to the css, html, and javascript tag listing pages.

Is it fine to just hardcode href=/tags/css and href=/tags/html right in my django templates/view?

I won't change them for at least a year or so, meaning I don't think I need to add a column to the tags table to distinguish them - is this common or should I try to make it somewhat dynamic? These tags are in a table but so are 1000 other tags.

© Stack Overflow or respective owner

Related posts about django

Related posts about views