Minor Error in 1.4 ePub Doc?
|Reported by:||moc@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I am the proverbial "newby"; I hope that I am being of assistance rather than being an annoyance.
On about page 178 in the Using Django---Models and Databases---Using models subsubsection it states:
For example, if the models for your application live in the module mysite.myapp.models (the package structure that is created for an application by the manage.py startapp script), INSTALLED_APPS should read, in part:
INSTALLED_APPS = (
My understanding, which comes from the 4-part tutorial at the beginning, is that the "mysite." shouldn't be there. You say, in the tutorial, that Django doesn't care what you name the folder that the project is in--- only the inner mysite name must be kept the same. Paths are evidently referenced to the outer mysite directory, which does contain a directory myapp which contains the models.py file, all of which means that we don't include the name of the outer directory in the path.
I have tested this by trying your version with mysite.myapp and it doesn't work. Just 'myapp' alone works.
Thanks so much for your good work,
Change History (4)
comment:1 Changed 2 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 2 years ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed