At line 21 of csv2json.py, change "import simplejson" to "from
django.utils import simplejson"
Now try running the csv2json.py script from the command line:
python csv2json.py sw.csv wkw1.Lawyer
See if that solves the problem.
Best,
Ben
On Nov 12, 2:14 pm, Zeynel <[email protected]> wrote:
> Hi,
>
> my project is in C:/sw1/wkw1
> models are in C:/sw1/wkw1/models.py
>
> Model name is Lawyer.
>
> So, in the python shell I import simplejson with
>
> from django.utils import simplejson
>
> then I enter
>
> csv2json.py sw.csv wkw1.Lawyer
>
> and I get the error
>
> >>> from django.utils import simplejson
> >>> csv2json.py sw.csv wkw1.Lawyer
>
> File "<stdin>", line 1
> csv2json.py sw.csv wkw1.Lawyer
> ^
> SyntaxError: invalid syntax
>
>
>
> What am I doing wrong?
>
> On Nov 12, 1:57 pm, "R. Gorman" <[email protected]> wrote:
>
> > What is the error message you are receiving?
>
> > R.
--
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=.