#๐Ÿ”’ Fixing Flask-Sitemapper library

3 messages ยท Page 1 of 1 (latest)

sudden dragonBOT
#

@junior pecan

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

junior pecan
#

The Problem:
Let's say I have a flask app with a route that has blog posts. I need to provide the title of each blog post to be mapped in the sitemap.xml file. The library does that, only once when you first run the app. Each time after when you request the sitemap.xml, the blog posts title list will remain the exact same. It doesn't matter if a blog was removed, updated or if one was added.

I need a way to make it dynamic. Allowing lambda or a function to be used and each time the sitemap.xml is requested through the /sitemap.xml route, it should be updated dynamically. Does anyone have any ideas?

Original Github Repository:
https://github.com/h-janes/flask-sitemapper

sudden dragonBOT
#

@junior pecan

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.