Site Admin

Include site administration dashboard pages.

This section covers how to add a site administration area, restricted to users who have is_superuser set to True.

Superusers will be able to manage all users, blog posts and comments: approving comments, publishing and unpublishing posts, and deciding who is an author, a member or another administrator.

The admin pages have their own simple layout, a sidebar beside the content, built on the Bootstrap 3 that came with the Clean Blog theme, plus a few lines of CSS. You could equally use one of the many free admin templates available. (Earlier versions of this guide used the “Simple Responsive Admin” template from free-css.com.)

To try these pages you need a superuser. Create one with the script from the Authentication section, or tick the box for an existing user in the database:

python -m db.create_user admin@example.com Ada Admin --author --superuser