Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Firefox Flicks engagement campaign
Python HTML JavaScript CSS Other
Tree: 9c309a6f12

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
docs
flicks
lib/product_details_json
migrations
puppet
requirements
static/blog
vendor @ ffb6542
vendor-local
wsgi
.gitignore
.gitmodules
LICENSE
MANIFEST.in
README.md
Vagrantfile
manage.py
setup.py
vagrantconfig.yaml
vagrantconfig_local.yaml-dist

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.