new_contents: #! /usr/bin/env python
  
  # Copyright (c) 2010, Nate Stedman <natesm@gmail.com>
  #
  # Permission to use, copy, modify, and/or distribute this software for any
  # purpose with or without fee is hereby granted, provided that the above
  # copyright notice and this permission notice appear in all copies.
  #
  # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  
  # populates the database with some sample users and projects
  
  import sys
  import os
  
  path = os.path.dirname(os.path.abspath(__file__))
  
  # remove the database and recreate it
  os.system("rm {0}/../db.sqlite".format(path))
  os.system("python {0}/../manage.py syncdb --noinput".format(path))
  
  # django setup
  sys.path.insert(0, path)
  sys.path.insert(0, os.path.abspath(os.path.join(path, '..')))
  sys.path.insert(0, os.path.abspath(os.path.join(path, '..', '..')))
  os.environ['DJANGO_SETTINGS_MODULE'] = 'observatory.settings'
  
  from dashboard.models import *
  from django.contrib.auth.models import User
  
  # make some users
  for person in [('natesm@gmail.com', 'password', 'Nate', 'Stedman'),
                 ('peterhajas@gmail.com', 'password', 'Peter', 'Hajas'),
                 ('hortont424@gmail.com', 'password', 'Tim', 'Horton'),
                 ('arsenm2@rpi.edu', 'password', 'Matt', 'Arsenault')]:
    user = User.objects.create_user(person[0], person[0], person[1])
    user.first_name = person[2]
    user.last_name = person[3]
    user.save()
    print "Added {0}".format(user.get_full_name())
    
  # make some projects
  ease_blog = Blog(external = False)
  ease_blog.save()
  ease_repo = Repository(web_url = "http://git.gnome.org/browse/ease",
                         repo_rss = "http://git.gnome.org/browse/ease/atom/?h=master",
                         cmd = "git clone",
                         cloned = False)
  ease_repo.save()
  ease = Project(title = "Ease",
                 description = "A presentation application for the Gnome Desktop",
                 website = "http://www.ease-project.org",
                 wiki = "http://live.gnome.org/Ease",
                 blog_id = ease_blog.id,
                 repository_id = ease_repo.id)
  ease.save()
  ease.authors.add(User.objects.get(username = 'natesm@gmail.com'))
  ease.save()
  
  mnot_blog = Blog(external = True,
                   url = "http://www.peterhajas.com/blog",
                   rss = "http://www.peterhajas.com/blog/atom.xml")
  mnot_blog.save()
  mnot_repo = Repository(web_url = "https://github.com/peterhajas/MobileNotifier",
                         repo_rss = "https://github.com/peterhajas/MobileNotifier/commits/master.atom",
                         cmd = "git clone",
                         cloned = False)
  mnot_repo.save()
  mnot = Project(title = "MobileNotifier",
                 description = "iOS notifications and stuff",
                 website = "http://www.peterhajas.com",
                 wiki = "http://www.peterhajas.com",
                 blog_id = mnot_blog.id,
                 repository_id = mnot_repo.id)
  mnot.save()
  mnot.authors.add(User.objects.get(username = 'peterhajas@gmail.com'))
  mnot.save()
  
  obsv_blog = Blog(external = True,
                   url = "http://nate.xen.prgmr.com",
                   rss = "http://nate.xen.prgmr.com/feed")
  obsv_blog.save()
  obsv_repo = Repository(web_url = "https://github.com/natestedman/Observatory",
                         repo_rss = "https://github.com/natestedman/Observatory/commits/master.atom",
                         cmd = "git clone",
                         cloned = False)
  obsv_repo.save()
  obsv = Project(title = "Observatory",
                 description = "This new dashboard thingy.",
                 website = "http://nate.xen.prgmr.com",
                 wiki = "http://nate.xen.prgmr.com",
                 blog_id = obsv_blog.id,
                 repository_id = obsv_repo.id)
  obsv.save()
  obsv.authors.add(User.objects.get(username = 'natesm@gmail.com'))
  obsv.authors.add(User.objects.get(username = 'hortont424@gmail.com'))
  obsv.authors.add(User.objects.get(username = 'peterhajas@gmail.com'))
  obsv.authors.add(User.objects.get(username = 'arsenm2@rpi.edu'))
  obsv.save()
subject: Add a script to load some sample data