Django3 - How to create Sitemaps & RSS Feeds for the blog application.

preview_player
Показать описание
Following topics discussed are:-
# Adding a sitemap to site
- A sitemap is an XML file that tells search engines the pages of our website, their relevance, and how frequently they are updated.
- Using a sitemap, we can make our site more visible in search engine rankings.

# Creating Feeds for blog posts
- A web feed is a data format (XML), provides users with the most recently updated content.
- Users will be able to subscribe using feed aggregators.
- Sitemaps help crawlers to index our website's content.

#django3 #Sitemap #feeds #blog
Рекомендации по теме
Комментарии
Автор

Should we use "from ..blog.sitemaps import PostSitemap" instead of "from blog.sitemaps import PostSitemap"?

I got this error "ValueError: attempted relative import beyond top-level package
"
when using "from ..blog.sitemaps import PostSitemap"

Then I got this error Site matching query does not exist.
"
when using "from blog.sitemaps import PostSitemap"..

please advise, thanks!

hansalexander
Автор

Hi, appreciate your effort and knowledge, but i am facing issue in Display of those urls in XML, it is not showing those path(blog/post/) just showing example.com and then post title . Can you please tell how to fix it?

ZNurseryRhymes