petrov wrote: > Hi, > > i am not sure how everyone else does this but here goes. > > I have some sample data in xml. so, i converted added the "insert into > ...values(..) " format and placed into the myapp/sql/myapp.sql > > at this pont i wanted to clear the table and add the sample data. > however, doing: > > python manage.py sqlreset myapp > mysql dbname -u username -p > > doesn't work. i get this error: "manage.py: error: no such option: -u" >
you mean 'python manage.py sqlreset myapp | mysql dbname -u username -p'. Note the | symbol instead of the > symbol. '>' and '<' mean output to this file (stdin and stdout count as files). '|' means use the output of the first program as the input of the second program. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

