About Loading Initial SQL Data
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django just looks for a file called sql/[modelname].sql, IN YOUR APP directory, where [modelname] is the model's name in lowercase.
But this doesn't work when the models lives in app's subfolders.
Ex:Project "CMS", App "Blog", models subfolder: "models"
Model Person: /blog/models/person.py
Custom Initial SQL:
/blog/sql/person.sql doesn't work.
/blog/models/sql/person.sql works fine. Like this:
Django just looks for a file called sql/[modelname].sql, in your MODELS APP directory, where [modelname] is the model's name in lowercase.
Sorry for by bad english, I hope that it's clear.