﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18954	Initial sql data documentation	Jonathan Liuti	nobody	"Ok on this page:
https://docs.djangoproject.com/en/dev/howto/initial-data/#providing-initial-sql-data

I think it would be nice to add that if for some reason you're using models as a directory with __init__.py that import every sub modules in there, you need to actually move the sql folder inside your models folder.

So to be clear:
usual setups is :
my_app/
 sql/
  mymodel.sql
 models.py --> myModel

the setup that needs documentation:
my_app/
 models/
  mymodelgroup.py --> myModel
  anothermodelgroup.py --> anotherModel
  sql/
   mymodel.sql

There is no info anywhere about this, I don't know if it's a feature or a bug by the way.
But it make sense I think to move the sql script inside the models folder it it's actually a folder.

Cheers!
   "	New feature	closed	Documentation	1.4	Normal	wontfix			Accepted	0	0	0	0	0	0
