Wednesday, December 29, 2010

Re: Splitting the models.py file

On 29 December 2010 10:37, Emmanuel Mayssat <emayssat@gmail.com> wrote:
> I attempted to split the model file into a 'module' (subdir with __init__.py).
> But for some reason syncdb doesn't see my app anymore.

Every python file is a "module". A directory with __init__ is a
"package". Now you can google for "django models package":

http://www.acooke.org/cute/UsingaDire0.html

--
Łukasz Rekucki

--
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.

No comments:

Post a Comment