Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Firefox Flicks engagement campaign

branch: master
Octocat-spinner-32 bin Update deploy script as per bug 843216. March 11, 2013
Octocat-spinner-32 docs Add gitkeep files instead of empty gitignore files to denote empty di… September 16, 2011
Octocat-spinner-32 flicks Fixed Privacy policy link April 22, 2014
Octocat-spinner-32 lib added remaining static pages and user profile January 18, 2012
Octocat-spinner-32 migrations Added schematic. January 06, 2011
Octocat-spinner-32 puppet Create mysql database with character set to utf8. January 25, 2012
Octocat-spinner-32 requirements Review fixes. July 24, 2013
Octocat-spinner-32 static Switch to using django_compressor for asset compression. January 24, 2013
Octocat-spinner-32 vendor @ 65d7a52 Fix bug 916669: Update playdoh-lib to pull in Django update to 1.4.8. September 23, 2013
Octocat-spinner-32 vendor-local Fix bug 900527: Update to the latest django-browserid. August 12, 2013
Octocat-spinner-32 wsgi Bug 857109: Add New Relic code to Flicks WSGI file. April 08, 2013
Octocat-spinner-32 .gitignore Bug 840716: Download thumbnail image instead of storing URLs. February 25, 2013
Octocat-spinner-32 .gitmodules Switch back to using jingo_minify for asset minification. January 28, 2013
Octocat-spinner-32 LICENSE Added LICENSE document. January 04, 2011
Octocat-spinner-32 MANIFEST.in More pythonic Playdoh layout: no top level __init__, no apps January 09, 2012
Octocat-spinner-32 README.md Small change to trigger push. March 04, 2013
Octocat-spinner-32 Vagrantfile Changes to make Vagrantfile compatible with vagrant 0.9.x January 19, 2012
Octocat-spinner-32 manage.py Remove temporary debugging. February 03, 2012
Octocat-spinner-32 setup.py pyflakes + pep8 February 14, 2012
Octocat-spinner-32 vagrantconfig.yaml Add puppet to playdoh October 03, 2011
Octocat-spinner-32 vagrantconfig_local.yaml-dist Add puppet to playdoh October 03, 2011
README.md

Firefox Flicks

Firefox Flicks is a playdoh-based site that allows users to submit vidoes and view other entries in the Firefox Flicks contest.

Setup

These instructions assume you have git, python, and pip installed. If you don't have pip installed, you can install it with easy_install pip.

  1. Start by getting the source:

    $ git clone --recursive git://github.com/mozilla/firefox-flicks.git
    $ cd firefox-flicks
    
  2. Create a virtualenv for Flicks. Skip the first step if you already have virtualenv installed.

    $ pip install virtualenv
    $ virtualenv venv
    $ source venv/bin/activate
    
  3. Install the compiled requirements:

    $ pip install -r requirements/compiled.txt
    
  4. Set up a local MySQL database. The MySQL Installation Documentation explains how to do this.

  5. Configure your local settings by copying flicks/settings/local.py-dist to flicks/settings/local.py and customizing the settings in it:

    $ cp settings/local.py-dist settings/local.py
    

    The file is commented to explain what each setting does and how to customize them.

  6. Initialize your database structure:

    $ python manage.py syncdb
    $ python manage.py migrate
    
  7. Install translations from SVN into the firefox-flicks/locale directory:

    $ git svn clone https://svn.mozilla.org/projects/l10n-misc/trunk/firefoxflicks/locale/ locale
    # or
    $ svn checkout https://svn.mozilla.org/projects/l10n-misc/trunk/firefoxflicks/locale/ locale
    
  8. Install the GNU version of gettext. If you are on OSX, you can do this using Homebrew:

    $ brew install gettext
    $ brew link gettext
    
  9. Compile the translations:

    $ python manage.py compilemessages
    

Running the Development Server

You can launch the development server like so:

$ python manage.py runserver

Waffle Flags

The following waffle flags are in use:

  • winners_page - Controls whether the winners page is available, as well as displaying winner information on designated videos.

License

This software is licensed under the New BSD License. For more information, read the file LICENSE.

Something went wrong with that request. Please try again.