Re: unable to import Modules Present in subdirectores

2011-06-29 Thread Kenneth Gonsalves
On Wed, 2011-06-29 at 03:51 -0400, srinivasan panneer wrote: > For example I have Views.py is it Views.py or views.py? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Djang

Re: unable to import Modules Present in subdirectores

2011-06-29 Thread Andre Terra
This can't be stressed enough. Please read http://www.python.org/dev/peps/pep-0008/ and try to follow it as best as you can. Sincerely, André Terra On Wed, Jun 29, 2011 at 12:26 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > > On Jun 29, 3:41 pm, Bill Freeman wrote: > >

Re: unable to import Modules Present in subdirectores

2011-06-29 Thread bruno desthuilliers
On Jun 29, 3:41 pm, Bill Freeman 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 u

Re: unable to import Modules Present in subdirectores

2011-06-29 Thread Bill Freeman
A couple of basic python things for you to check: 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

Re: unable to import Modules Present in subdirectores

2011-06-29 Thread Tim Shaffer
You do have a __init__.py file in each of the sub folders, correct? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/G33m7AMAv7wJ. To post to this group, sen

unable to import Modules Present in subdirectores

2011-06-29 Thread srinivasan panneer
Hi Guys I am very new to Python and Django and having problem with importing modules in my project, I am following the tutorial, which i downloaded from django website. Where I have the following folder hierarchy in my Django project.(using Pycharm IDE) HelloWorldDjangoHelloWorldDjango/HelloWor