Sunday, February 6, 2011

How to define each model in its own file

Hi Guys,
Am very new to django and am working on a relatively large web
application which includes over 15 models.
Now I want to define each model in its own file and store them in a
folder called models, so I first created the folder "models" and
created a file "__init__.py" in that folder and defined each model in
a separate file but its not working.
Any help on this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate