ARCHIVED: A Firefox 4 campaign focused on marketing the Mobile browser product.
Перейти к файлу
Guigui 6554309463 Bug fix with my last commit 2011-04-06 14:06:36 +02:00
apps New spark states for the mobile 2011-04-05 23:42:01 +02:00
bin Bug 642779 - Add compile.sh step to update_site.py 2011-03-18 19:01:04 +01:00
docs Initial Spark commit 2011-02-18 00:35:39 +01:00
lib Added ja.json to the localized country names directory. Currently a clone of en-US.json. 2011-03-28 22:48:11 +02:00
media Bug fix with my last commit 2011-04-06 14:06:36 +02:00
migrations Bug 646348 – Timezones are now stored as float values 2011-04-01 17:50:14 +02:00
requirements Bug 642188 – Updated settings_local.py-dist for stage/production. Added a new settings_local.py-dev for dev specific environment settings. 2011-03-24 20:00:25 +01:00
templates Mobile favicon now the same PNG as the desktop version 2011-04-03 20:13:55 +02:00
vendor@b34b82f484 Updated spark-lib 2011-03-18 12:58:17 +01:00
wsgi Renamed playdoh.wsgi to spark.wsgi. Fixed ajax_required decorator's indentation 2011-02-19 18:12:33 +01:00
.gitignore Initial commit of the global visualizer 2011-03-21 16:04:33 +01:00
.gitmodules Added spark-lib as a git submodule for the vendor dir. 2011-03-08 01:08:21 +01:00
LICENSE Initial Spark commit 2011-02-18 00:35:39 +01:00
README.md Formatting README.md 2011-03-24 20:31:14 +01:00
__init__.py Initial Spark commit 2011-02-18 00:35:39 +01:00
manage.py Initial Spark commit 2011-02-18 00:35:39 +01:00
settings.py Isolated the spark animation code into a separate js file 2011-04-04 18:48:17 +02:00
settings_local.py-dev Bug 645014 - Removed temporary code and plugged visualization on real game data 2011-03-26 02:57:04 +01:00
settings_local.py-dist Bug 645238 – Added two settings for known languages on stage and production. Set prod as default. 2011-03-27 18:31:18 +02:00
urls.py QR code contains correct user share tracking url 2011-03-10 17:50:58 +01:00

README.md

Spark

Spark desktop and mobile campaign websites.

Based off Mozilla's Playdoh web application template, Spark is hosted on github.

Python dependencies are in the spark-lib repository also hosted on github.

Please refer to Playdoh's docs for more information.

Getting started (all environments)

Important: clone into a directory with a different name than spark, or else there will be a conflict with a django app named spark.

  • git clone --recursive git://github.com/mozilla/spark.git my_spark
  • Optional: create a virtualenv before running the step below
  • pip install -r requirements/compiled.txt

Dev installation

  • Refer to 'Getting started' above

  • cp settings_local.py-dev settings_local.py

  • Configure the database in settings_local.py

  • ./vendor/src/schematic/schematic migrations/

  • ./manage.py runserver

  • Enabling Celery tasks: ./manage.py celeryd

  • For optional test data, run from mysql: source lib/staging/test-data.sql

When the dev installation is complete:

Stage installation

  • Refer to 'Getting started' above
  • cp settings_local.py-dist settings_local.py
  • Configure all required settings in settings_local.py for stage
  • Run migrations: ./vendor/src/schematic/schematic migrations/
  • Import test data in mysql: source lib/staging/test-data.sql
  • Set up the Celery server (Celery settings are in settings.py)
  • Run celeryd
  • Set up a cron job: ./bin/update_site.py -e stage

Production installation

  • Refer to 'Getting started' above
  • cp settings_local.py-dist settings_local.py
  • Configure all required settings in settings_local.py for production
  • Run migrations: ./vendor/src/schematic/schematic migrations/
  • Set up the Celery server (Celery settings are in settings.py)
  • Run celeryd
  • Set up a cron job: ./bin/update_site.py -e prod