ringemup wrote: > I've noticed all these __init__.py files are generated when you create > a new app in django, and I can't find any documentation on them. What > are they for? What does one do with them?
it tells Python that the directory is a package directory. if you have mydir/foo/__init__.py mydir/foo/module.py and mydir is on the path, you can do "import foo.module" or "from foo import module". if you remove the __init__.py file, Python will no longer look for submodules inside the mydir/foo directory. for more on this, see your favourite Python tutorial. </F> --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---