There is a page in the documentation dealing with initial data [1].
The good news is that you don't have to write more code. You insert
your data in a file and load it with the manage.py command. Out of the
box, JSON, XML and SQL are supported.


[1] https://docs.djangoproject.com/en/1.9/howto/initial-data/

2016-03-20 19:05 GMT+01:00 Lawrence Muriuki <[email protected]>:
> Hi All,
>
> I have built a web scraper to scrape a website and get all match fixtures
> for a particular day. Wanted to know how to insert that initial data into
> django database and where that code should live..I have currently put the
> code in init.py but it looks and sounds wrong according to a quick google
> search..
>
> Any help will be appreciated..
> Thank You
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3de1d2d2-b774-4c39-b5b8-2b9602cff829%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 

Cordialement, Coues Ludovic
+336 148 743 42

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEuG%2BTb0x%3D6JnrPZmOT0vLjZO-n2rh6TOoOkp0SkWTaRwSy_eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to