So would it look something along these lines: from app.models import NewModel # parse csv data here meow = NewModel(whatever = parsedData) meow.save()
Where should this script live? Is there a general place django developers keep these scripts? If I want this script to run every x minutes, would a cron job be the best approach? On Mar 19, 4:45 pm, Shawn Milochik <sh...@milochik.com> wrote: > I recommend creating a script that reads the CSV files then creates > instances of your models from that data and saves them. > > This will ensure that your signals (if any) fire, and that any > relationship or validation errors are known immediately, rather than > breaking your application later. > > Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.