You can use migrations and the RunSQL operation.

https://docs.djangoproject.com/en/stable/ref/migration-operations/#runsql

On Saturday, December 12, 2015 at 8:59:08 AM UTC-5, naveen tamanam wrote:
>
> In older django versions I use to load the default values using sql files 
> which are in the folder sql in side the app directory. But in django.1.9c1 
> it's not working. 
>    When I look at django documentation it seems like support raw sql file 
> is removed to load the default data. 
>   How to load the dafault data using  raw sql queries. 
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/f560714c-0546-4d98-8986-d3e32ff4a5b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to