you might want to read through this snippet.
http://djangosnippets.org/snippets/788/
its a csv import script which imports to a django db from a csv file.
very easy to use.
im using it relatively successfully. it populates a model, but it
errors if you try and set a boolean and i havent worked out
Reading CSV with Python, see:
http://www.linuxjournal.com/content/handling-csv-files-python
I'm not sure you need a dictionary view as well (?) - the above
tutorial shows how tuples are created, which may be sufficient for
your needs.
Working through a Django tutorial, or the first part of The Dj
Thanks for the response. I think that is exactly what I'm looking for.
But, being a newb, this raises new questions that I will spare the
group. Could you point me toward a book or tutorial that would show me
how to do that?
Thanks.
On Tue, Sep 7, 2010 at 10:23 AM, Shawn Milochik wrote:
> It doe
It doesn't seem like converting your data into fixtures will provide
any advantage. If it's pipe-delimited, then just write a Python script
imports the CSV module (which can handle other delimiters) and your
model(s).
Use it to read the data and convert it to dictionaries, then create
instances of
Hello,
I'm trying to automatically update a Django project using json
fixtures. ... There is a pipe delimited file that is automatically
updated. I would like to save the data from that file into a Django
project. The way I have been approaching this is to convert the file
into json fixtures and u
5 matches
Mail list logo