yawd-admin icon indicating copy to clipboard operation
yawd-admin copied to clipboard

Redirecting admin_site.urls to root

Open Zundrium opened this issue 10 years ago • 0 comments

Using url(r'^', include(admin_site.urls)) makes the admin panel to appear on the root url.

However,

When typing 1 segment aside the root url that doesn't exist. It generates an 500 KeyError, not a 404 Page not Found.

How to reproduce on the example site: 1 ) login demo/demo 2 ) go to http://yawd-admin.yawd.eu/ueoue/

This only happens with unknown urls that have 1 segment and no special characters.

Zundrium avatar Aug 20 '14 07:08 Zundrium