Wednesday, June 29, 2011

Re: unable to import Modules Present in subdirectores

On Jun 29, 3:41 pm, Bill Freeman <ke1g...@gmail.com> wrote:
> A couple of basic python things for you to check:
(...)
> 2: Python imported names are case sensitive, even if your filesystem
> is not.  Thus you cannot import a module named "Views.py" using the
> name "views", as in "polls.views".  You would have to use, for
> example, "polls.View".  If the name of the package is "Polls" then you
> would have to use "Polls.Views".

The obvious conclusion being: only use all_lower names for your
packages and modules names.

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