dashboard package#

Submodules#

dashboard.apps module#

class dashboard.apps.DashboardConfig(app_name, app_module)[source]#

Bases: AppConfig

name = 'dashboard'#

dashboard.urls module#

dashboard.views module#

views for dashboard

dashboard.views.dashboard(request)[source]#

view to force the login prompt to come up

dashboard.views.get_announcements(request)[source]#

internal function to get Posts for forum_type=”Announcements”

dashboard.views.get_announcements_logged_out()[source]#

internal function to get Posts for logged out users For now just return the latest 3 posts in Forum id=1

dashboard.views.get_posts(request)[source]#

internal function to get Posts

dashboard.views.help(request)[source]#

help page for new bridge users

dashboard.views.home(request)[source]#

Home page

dashboard.views.logged_out(request)[source]#

Home screen for logged out users

dashboard.views.scroll1(request)[source]#

Cutdown homepage to be called by infinite scroll.

This handles the right column - discussion posts

Infinite scroll will call this when the user scrolls off the bottom of the page. We don’t need to update anything except the posts so exclude other front page database hits.

dashboard.views.scroll2(request)[source]#

Cutdown homepage to be called by infinite scroll.

This handles the left column - announcements

Infinite scroll will call this when the user scrolls off the bottom of the page. We don’t need to update anything except the posts so exclude other front page database hits.

dashboard.views.slug(request, slug_name)[source]#

Try to convert the slug to a redirected path

Module contents#