Skip to content

Commit

Permalink
Added sample-project README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico committed Jul 3, 2010
1 parent bea58b5 commit 6802a58
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sample_project/README.md
@@ -0,0 +1,24 @@
# Sample Project

There's a sample project demonstrating the use of `django_importer` in
a management command to import data from a CSV file to a django model.

# Testing

To manually test the command, go to the `sample_project` directory,
open the shell and check the number of Tasks:

./manage.py shell
>>> from tasks.models import Task
>>> Task.objects.count()
0

Now run the import command using the sample CSV file and check the
number of Tasks again:

./manage.py tasks_import_daily tasks.csv
./manage.py shell
>>> from tasks.models import Task
>>> Task.objects.count()
21

0 comments on commit 6802a58

Please sign in to comment.