I don't think satchmo has anything specifically for this use case.
However, you could use python's csv module.

http://docs.python.org/library/csv.html#csv.DictReader

Basically, the script would look like this:

from csv import DictReader
from product.models import Product

reader = DictReader(open('products.csv'))
for line in reader:
    Product.objects.create(
        #Setup the mapping between csv columns and satchmo product
attributes here
        title=line['title'],
        slug=line['slug_field]'
        ...
    )

You'd probably want some error control and stuff like that, but that
is the basic idea.

Hope that helps,
Alex

On Mon, Nov 8, 2010 at 1:44 AM, Paul Walsh <[email protected]> wrote:
> Hi,
>
> I am a new Satchmo user (and a very very novice Django beginner) -
> something that wasn't clear to me:
>
> Is there a core module or an available extension to import data via
> CSV? I saw the product_feeds extension module but it only seems to
> deal with export.
>
> If anyone can point me in the right direction that would be great!
>
> Thanks,
>
> Paul.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/satchmo-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to