I am not sure if i got the problem right, but this is what i think you could do.
If you want to keep your views in directory:
app/
views/
__init__.py <- This is where you keep your views so you don't
even need to change your urls.py or anthing
something_else.py <- something else
Also you can keep your models in models/__init__.py and don't need to
change any imports, like:
app/
models/
__init__.py <- this is where your keep your models
On the other hand you can have
app/
models/
other_models.py <- this is where the models are for example
__init__.py <- this is where you import your models so they can
be imported
in __init__.py you say
from other_models import * (or Model1, Model2 etc)
And where every you used your models like
from app.models import Model still works as expected.
Same goes for views.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=.