When running this
from django.urls import path
from . import views
from . import util
encyclopedia_list = util.list_entries()
urlpatterns = [
path("", views.index, name="index")
]
for encyclopedia in encyclopedia_list:
urlpatterns.append(path(f"{encyclopedia}", views.encyclopedia, name='encyclopedia_page')
print(urlpatterns)
script in a django app in order to test if the urlpatterns list is being updated acordingly I get a syntax error with the print function on the last line, any idea on what could be happening?