Skip to content

Commit e37e50a

Browse files
Add debug logging
1 parent dbb410f commit e37e50a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/langpro_annotator/index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def index(request: HttpRequest):
1010
language = request.LANGUAGE_CODE
1111
page = request.path[1:].split("/", 1)[0]
1212
# pre-rendered version available?
13+
print('Location:', path.join(language, page, "index.html"))
14+
print('Language code:', language)
15+
1316
location = finders.find(path.join(language, page, "index.html"))
1417
if not location:
1518
location = finders.find(path.join(language, "index.html"))

0 commit comments

Comments
 (0)