This will allow you to change the server used by about:home, and to force a
refresh. Usually this page only checks for content once per day, but the addon
will cause another check immediately.
Deployment
Follow the steps for development, but use the vendor library and use Schematic migrations.
Also, check out settings_local.py-dist-prod rather than the -dev version.
Configure your web server to serve up static assets, which are only served by Django in development.
Static assets
For Apache, something like this should do (adjust paths to suit your installation):
Alias /site_media/ /www/snippets.decafbad.com/app/home-snippets-server/site_media/
<Directory /www/snippets.decafbad.com/app/home-snippets-server/site_media>
Options -ExecCGI
</Directory>
Alias /media/ /www/snippets.decafbad.com/app/home-snippets-server/vendor/packages/Django/django/contrib/admin/media/
<Directory /www/snippets.decafbad.com/app/home-snippets-server/vendor/packages/Django/django/contrib/admin/media>
Options -ExecCGI
</Directory>
Useful settings, if you need to change the locations from which these assets are served (eg. to a CDN or other host)
about:home Snippets Server v0.1
Firefox 4 has space for snippets of content on about:home - this is a content management app to serve and manage those snippets.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=592431
Development
git clone git://github.com/mozilla/home-snippets-server.gitcd home-snippets-servergit clone git://github.com/mozilla/home-snippets-server-lib.git vendorvirtualenv --no-site-packages env./env/activatepip install -r requirements/dev.txtsettings_local.pyfile:cp settings_local.py-dist-dev settings_local.pysettings_local.pyfilepython manage.py syncdbmigrations/000-base.sqlsettings_local.pyto use the MySQL database./vendor/src/schematic/schematic migrationsmigration/whenever you need to change the database.python manage.py runserverpython manage.py test homesnippetspython manage.py test homesnippets -lnose.homesnippets -a\!TODOSwitch about:home to another server
Install and use this addon:
This will allow you to change the server used by about:home, and to force a refresh. Usually this page only checks for content once per day, but the addon will cause another check immediately.
Deployment
settings_local.py-dist-prodrather than the-devversion.Static assets
For Apache, something like this should do (adjust paths to suit your installation):
Useful settings, if you need to change the locations from which these assets are served (eg. to a CDN or other host)
MEDIA_URL = '/site_media/'MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media')site_mediaADMIN_MEDIA_PREFIX = '/media/'ADMIN_MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'vendor/packages/Django/django/contrib/admin/media')vendor/packages/Django/django/contrib/admin/media