I'm not sure exactly what you're after. Does this help? from product.models import Product p = Product() p.site_id = 1 p.name = 'An Example Product' p.description = 'feel free to delete this product record' p.save() p_from_db = Product.objects.filter(name='An Example Product').get()
I entered that series of commands into the python console, which I started via "python manage.py shell". --Stuart On Thu, Jul 22, 2010 at 11:01 AM, Brian Lee <[email protected]> wrote: > Can someone point me to a very simple python script or statement that > will save a new product in Satchmo? I am new to Django so I know that > I have to invoke Product Save() function but I have no idea how to > exactly implement it. > > Thank you so much, > > Brian > > -- > 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.
