nnmon.py 280 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.template import Library, Variable
from django.conf import settings
from django import template
import random

register = Library()

@register.simple_tag
def root_url():
    return settings.ROOT_URL

@register.simple_tag
def media_url():
    return settings.MEDIA_URL