Changes between Version 3 and Version 4 of CookBookSplitModelsToFiles


Ignore:
Timestamp:
Nov 30, 2006, 2:29:25 PM (18 years ago)
Author:
Mikko Suniala <mikko.suniala@…>
Comment:

Added a note about initial sql data paths.

Legend:

Unmodified
Added
Removed
Modified
  • CookBookSplitModelsToFiles

    v3 v4  
    4141
    4242Ok so the example is a bit stupid but it should illustrate the point.
     43
     44== Providing initial sql data for models ==
     45
     46If you provide initial sql data for you models (as described in [http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data Providing initial SQL data]) you should notice that at least in Django 0.95 the path for sql files is different when this recipe is applied. In this case the path is:
     47
     48{{{<appname>/models/sql/<modelname>.sql}}}
Back to Top