added urls for static and media
made setting template tag gracious