Stephen Sundell schrieb:
> I really was just looking for a way
> to separate models into different modules or files within the same
> application. Is this possible?
>
Hi,
I do it like this:
Directory myapp/models/ contains:
__init__.py
myclass.py
file __init__.py:
from myclass import MyClass
file myclass.py:
class MyClass(models.Model):
class Meta:
app_label='myapp'
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---