Podium added and working, logo and website of campuses added in campus model #76
|
@ -4,9 +4,7 @@ register = template.Library()
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def get_chall_by_lang(chall, lang):
|
def get_chall_by_lang(chall, lang):
|
||||||
print(chall.slug)
|
|
||||||
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
|
filepath = "ctfs/templates/challenges/"+ lang + "/" + chall.slug + ".html"
|
||||||
print(filepath)
|
|
||||||
try:
|
try:
|
||||||
with open(filepath) as fp:
|
with open(filepath) as fp:
|
||||||
return fp.read()
|
return fp.read()
|
||||||
|
|
Loading…
Reference in New Issue