dashboard package#
Submodules#
dashboard.apps module#
dashboard.urls module#
dashboard.views module#
views for dashboard
- 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.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.