Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.
/ sitemap-bug Public archive

Demonstrates a djangocms-blog error when visiting sitemap.xml.

Notifications You must be signed in to change notification settings

mliudev/sitemap-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djangocms-blog sitemap bug demo

A prototype django cms project which demonstrates an internal server error bug when visiting the sitemap.xml page. This bug occurs if there are no published articles for a blog app config.

To demonstrate the bug first install the project requirements:

pip install -r requirements.txt

Run the server with:

python manage.py runserver

Navigate to the site:

localhost:8000

Navigate to sitemap.xml:

localhost:8000/sitemap.xml

You should see an internal server error indicating that one of the blog app config namespaces throws a NoReverseMatch() error.

You can access the admin with:

Username: demo Password: password1

Navigate to the 'Blog Articles' admin page and you'll see two articles associated with two different app configs. Create a new page and attach the 'Blog' apphook with the 'Blog / Blog' app config. Publish the page.

Now navigate back to localhost:8000/sitemap.xml and you should see the page load successfully.

About

Demonstrates a djangocms-blog error when visiting sitemap.xml.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published