Skip to content

Commit

Permalink
Replace fjord.sampledata with django-eadred
Browse files Browse the repository at this point in the history
I spent some time extracting the sampledata application out as a separate
project so we could use it in Kitsune (and other places as well). This
switches fjord over to using that.

One nice thing eadred has is the ability to pass parameters from the
command line to the generate_sampledata functions. This allows us to
easily allow for different kinds of sample data generation: reproducible
data set for contributors, randomized large data set for testing the
dashboard, icky data set for testing security and unicode handling, ...
  • Loading branch information
willkg committed Sep 27, 2012
1 parent f803445 commit 9f388a3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 39 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -13,3 +13,6 @@
[submodule "vendor-local/src/jingo-minify"]
path = vendor-local/src/jingo-minify
url = git://github.com/jsocol/jingo-minify
[submodule "vendor-local/src/django-eadred"]
path = vendor-local/src/django-eadred
url = git://github.com/willkg/django-eadred.git
2 changes: 1 addition & 1 deletion docs/hacking_howto.rst
Expand Up @@ -315,7 +315,7 @@ Getting sample data

You can get sample data in your db by running::

$ ./manage.py sampledata
$ ./manage.py generatedata

This will generate a bunch of sample data so that your Fjord instance
has something to look at.
Expand Down
2 changes: 1 addition & 1 deletion fjord/feedback/sampledata.py
Expand Up @@ -25,7 +25,7 @@ def create_simple(happy, description, url=u'', ua=FIREFOX_LINUX_17,
return obj


def generate_sampledata():
def generate_sampledata(options):
# Create 5 happy opinions.
create_simple(True, u'Firefox is great!')
create_simple(True, u'Made me pancakes!')
Expand Down
Empty file removed fjord/sampledata/__init__.py
Empty file.
Empty file.
Empty file.
34 changes: 0 additions & 34 deletions fjord/sampledata/management/commands/sampledata.py

This file was deleted.

2 changes: 1 addition & 1 deletion fjord/settings/base.py
Expand Up @@ -24,13 +24,13 @@
'django.contrib.admin',
'django_nose',
'djcelery',
'eadred',
'jingo_minify',
'test_utils',

'fjord.analytics',
'fjord.base',
'fjord.feedback',
'fjord.sampledata',
'fjord.search',
))

Expand Down
1 change: 1 addition & 0 deletions vendor-local/src/django-eadred
Submodule django-eadred added at 7e0ef4
5 changes: 3 additions & 2 deletions vendor-local/vendor.pth
@@ -1,8 +1,9 @@
src/django-cache-machine
src/django-adminplus
src/django-cache-machine
src/django-eadred
src/elasticutils
src/jingo-minify
packages/pyes
packages/python-memcached
packages/pyquery
packages/python-memcached
packages/cssselect

0 comments on commit 9f388a3

Please sign in to comment.