Package: vote4film
Vote4FilmSimplify film selection for regular film nights. Participants can:Add filmsVote for filmsDeclare absencesSee the schedule which takes into account votes and absencesAdmins can set the schedule of film nights.This is a simple WSGI Web Application. The back-end is Django, and the front-end
is dynamic HTML served by Django (no JavaScript is used).Developmentpoetry installto set-up the virtualenv (one-off)poetry run ./src/manage.py migrateto set-up the local DB (one-off)poetry run ./src/manage.py runserver_plusbin/fix,bin/checkandbin/testbefore committingContributingPull requests are welcome :)TODO: Fix dependency onbbfcapito bebbfcapi[apis]and remove direct
dependency onpyhumps.PublishingThis application is published on PyPi.Ensure you have configured the PyPi repository with Poetry (one-off)Add the release notes in this README.mdpoetry version minorto bump the major/minor/patch versionAlso bump version invote4film/__init__.pypoetry publish --buildto releaseTo publish to the test repository:Ensure you have configured the Test PyPi repository with Poetry (one-off)poetry publish --build -r testpypito upload to the test repositoryDeploymentUnfortunately, I will not provide detailed guidance for production deployment.Some general tips:Create a virtualenv, e.g. in~/virtualenvInstall withpip install vote4film[postgres]Write the configuration at~/.config/vote4film/local.envUse Postgres as the databaseUse Nginx/uWSGI to to serve the site (with HTTPS)Run Django management commands using./virtualenv/bin/manageChangelogUnpublished...v1.7.5 - 2022-03-29[SECURITY] Fix security vulnerability in underlying dependenciesUpdate Django dependency to the next long-term support releasev1.7.4 - 2022-03-25Fix film cards where the runtime is unknownExtend the lifetime of logged-in sessions to one yearv1.7.3 - 2021-06-05[SECURITY] Fix security vulnerability in underlying dependenciesFix adding films where rating is missingLazily load film card imagesv1.7.2 - 2021-03-04Fix getting age rating from BBFCUpgrade dependenciesv1.7.1 - 2021-02-20Add colour to system status bar at the top on iOS SafariFix vote symbols across different web browsersReduce page loading timesv1.7.0 - 2021-01-26Add share button to tell people about the next eventAdd login pageFix webmanifest link on mobile web appIncrease size of film posters on larger displaysPrettify next event date headingv1.6.0 - 2021-01-24Treat users with unknown presence as being absent for the eventAdd link to edit films on film cardsAdd button to refresh film informationFix colours on film cardsv1.5.8 - 2021-01-17[SECURITY] Fix security vulnerability in underlying dependenciesFix linking to films on BBFC's websiteFix retrieving age rating from BBFCv1.5.7 - 2020-11-08[SECURITY] Fix security vulnerability in underlying dependenciesFix vendored YouTube icon being hidden by adblockersFix missing BBFC age rating symbolsFix failing to log correct error when adding filmsv1.5.6 - 2020-09-20Fix parsing omdb film rating when it is missingAdd search to the admin page for filmsStop content reflow on film cardsStop BBFC icon downloads redirectingReplace external YouTube icon with a local SVGLog more information to Sentry (if enabled)v1.5.5 - 2020-06-20[SECURITY] Fix security vulnerability in underlying dependenciesAdd website faviconFix parsing "PG" age ratingv1.5.4 - 2020-05-29Fix missing icons on upcoming and add film pages (use fontawesome)v1.5.3 - 2020-05-02Add "update film" link when editing a filmAdd redirects after editing a filmMiscellaneous UI tweaksAdd support for "G" age rating on IMDBFix initial choice on the calender not matching the user's previous choiceAdd option for Sentry's trace sample ratev1.5.2 - 2020-04-04Fix link to calender when there is no upcoming eventv1.5.1 - 2020-04-04Fix call-to-action flow for the upcoming pagev1.5.0 - 2020-04-04Overhaul user interfaceEnable additional Sentry features including tracingv1.4.0 - 2020-03-22Allow users to change their voteRedirect the user to the schedule after registering for the eventHide upcoming film until the user has voted for all filmsAdd actually usable admin interfaceAdd optional Sentry integrationv1.3.0 - 2020-03-22Fix error adding film when age rating on IMDB/OMDB is "N/A"Add BBFC age ratingsv1.2.3 - 2020-02-01Redirect to upcoming schedule after voting for every filmFix HTTP 500 error when on schedule page without registering for the eventv1.2.2 - 2019-12-05Fix HTTP 500 error when adding a film that was already added (again)Highlight calender and vote links when there is a user action to takePick the oldest added film for upcoming when scores are a drawv1.2.1 - 2019-11-21Remove "film is not available" from the voting pageRemove "vote for this film" from the voting pageFix the upcoming page asking absent users to register on calenderv1.2.0 - 2019-11-21Fix ranking films with zero votes as number oneHide upcoming film until the user has registered for the next eventClarify what will happen when adding a film by giving the user more choicesFix HTTP 500 error when adding a film that was already addedHide a film's votes from the user until they have votedv1.1.0 - 2019/11/16Show the register of present/absent users for upcoming filmsFix not highlighting films that are not available to be watchedFix parsing of "Not Rated" age ratings resulting in an errorv1.0.9 - 2019/11/13Actually let's not be too dumb about packagingv1.0.8 - 2019/11/13Rename management command from vote4film to manageStop trying to be smart about packagingv1.0.7 - 2019/11/13The same fixes as v1.0.6 but for real this timev1.0.6 - 2019/11/13Fix url patterns for internal apps in installed environmentFix missing template files in PyPi package (so typical!)v1.0.5 - 2019/11/12Add optional postgres support, e.g.pip install vote4film[postgres]v1.0.4 - 2019/11/12Fix bug loading config from XDG config home (sigh)Fix django-extensions being missed from dependenciesv1.0.3 - 2019/11/12Fix config sub-directory used in XDG config homev1.0.2 - 2019/11/12Load configuration from XDG config homev1.0.1 - 2019/11/10First release of Vote4Film