It is not used anymore and we can do the same thing with category_obj.video_set.live(), using the video manager.
Django already ships with a contrib app that implements the sitemap protocol, so this change is straightforward. This adds sitemaps for pages, categories, speakers and videos. Tags don't have their own page yet, so we'll add a sitemap for them later. Because we're using Jinja2 for templates, the sitemaps application has to be ignored by jingo, otherwise rendering will fail due to unknown tags. Typically, jingo determines the app's name by looking at the template name, the sitemaps application however just passes 'sitemap.xml' as template name. Therefore we need to use that as application name in JINGO_EXCLUDE_APPS.
We now have a reliable way to determine what pages are available. This has two uses: 1. Only serve templates in pages/ that the site admin configured, i.e. don't accidently serve a template that is used as base for other pages. 2. We don't have to guess what pages to include in the sitemap.xml.
Previously the view would throw a 500 (server error) when a page was accessed that has no corresponding template file.
With the addition of the submit link, the navbar becomes more and more crowded. Move the browse links (categories, speakers) into a dropdown menu in the navbar to regain more free space. Once we finish the improved browse system, we won't need the dropdown anymore.
This will allow site administrators to collect suggestions for videos or conferences to be added to the site. A suggestion has different states, it's either new, in progress, completed, rejected or marked as spam. When completing or rejected a suggestion, the site owner may add a few words about the resolution. This commit establishes a base to work from, that is a database table, integration into the admin and a simple list of all suggestions with their status for users to see. Suggestions marked as spam will not be shown.
Provides a load_sampledata mangement command that, when run, will look through all registered apps in the project and attempts to import a sampledata module. In this module, applications should fill the database with test data. We will use this to replace the current JSON fixtures with the model makers from the tests.
89. Link to specific timecode of videos Allow users to link to videos at a given time, similar to what's possible at YouTube. For example, http://pyvideo.org/video/3/foo#t=3m12s will jump to 3 minutes and 12 seconds in the video. Supported are videos managed by UniversalSubtitles and embedded with HTML5. Browsers need to support the hashchange event, so IE6/7 are out for now.