1: You must have a file named "__init__.py" (it may be an empty file)
in any directory that is to occur before a "." in an import statement.
The presence of this file makes the directory a "package", just like
having a name ending in ".py" makes a file a module. You can import
modules or sub-packages from packages, but not from directorys that
aren't packages, unless the directory is explicitly on sys.path.
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".
Bill
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
is it Views.py or views.py?
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/