在我升级到Wagtail2.4之前,我曾经有一个可以工作的网站地图。我已经根据这里的文档升级了我的网站:,但仍然没有这么幸运。我得到的错误是get_sitemap_urls() takes 1 positional argument but 2 were given。我已经在我的基本设置中将'django.contrib.sitemaps',添加到了我的INSTALLED_APPS中,并将以下内容添加到了我的urls.py中
from wagtail.contrib.sitemaps.viewsurl
sumoddsquare' :: (Num a) => [a] -> a我想要的输出是35Couldn't match expected type `[a] -> a' In the expression: [x ^ 2 | x <- [1 .. 9999], odd x]
In an equation for sumodd