Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Enrico
committed
Jul 3, 2010
1 parent
bea58b5
commit 6802a58
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|