Actually I have only one app. What I am going to do is to import the initial data into database from some text format files. I need to write a Python script to read from the source file, and do some operations on the data, then insert into database. I could do that via pure SQL, but I like the way of DAL doing, so I just try if I could do that.
I don't do that via web (like upload a file, and do it in controller) because this work may take some time, and the problem is I am not quite familiar with cron/background task yet. I would try the methods above. Thanks a lot On Sat, Apr 7, 2012 at 11:12 PM, Massimo Di Pierro < [email protected]> wrote: > I would like to stress once more a design issue. If two apps share the > same table/model there are two cases: > > a) the apps are independent (it is possible to distribute them > independently) > b) the apps are dependent (they must be distributed together) > > In case a) the model cannot be shared. Each app must have its own copy. > You cannot assume other app being present. > > In case b) the two apps should be merged into one app with two controllers > and two conditionals models. They are not two distinct apps. > > You can deviate from these two cases but I would not recommend. If you > deviate be careful in catching all possible exceptions. > > Massimo > -- =========================== Regards Ronghui Yu

