debug menu bug fixed

navbar.inc -> logout icon included.
views.py -> request argument included in all prerender function calls to
avoid crash.