As I mentioned in my initial post, I've tried that.
I stored the main models.py in a subdirectory of my DjangoRoot called Static.
Then, I created a directory for each app, and included in it a simple
models.py file which just said:
from DjangoRoot.Static.models import *
This did not work. Djan
yes, i was thinking that may be models.py might import actual models
from elsewhere? if it can you will still have separate one-line
models.py but i think it is acceptable. no?
On Mar 12, 11:59 pm, "Mark Engelberg" <[EMAIL PROTECTED]>
wrote:
> Well, as far as I can tell, for each entry in my INST
Well, as far as I can tell, for each entry in my INSTALLED_APPS (from
settings.py), it looks in that directory, and expects to find a
models.py there. So I'm looking for an alternative to duplicating the
same models.py file in multiple directories.
--Mark
On 3/12/07, akonsu <[EMAIL PROTECTED]>
hello,
but model.py is imported it as any module. what prevents you from just
having it on the PYTHONPATH and not necessarily in the application
directory?
may be i misunderstood the question...
konstantin
On Mar 12, 9:37 pm, "Mark Engelberg" <[EMAIL PROTECTED]> wrote:
> So I've got several ap
So I've got several applications which share the same model/view
structure. I have kept the applications separate because conceptually
I want them separate in the admin interface, I want them to store
their respective info in separate tables in the database, and most
importantly, I want to retain
5 matches
Mail list logo