On 11/19/06, ringemup <[EMAIL PROTECTED]> 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?

"
The __init__.py files are required to make Python treat the
directories as containing packages; this is done to prevent
directories with a common name, such as "string", from unintentionally
hiding valid modules that occur later on the module search path. In
the simplest case, __init__.py can just be an empty file, but it can
also execute initialization code for the package or set the __all__
variable, described later.

"
http://www.python.org/doc/2.1.3/tut/node8.html

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

Reply via email to