On Mon, Nov 23, 2009 at 2:46 PM, neridaj <neri...@gmail.com> wrote:

> I've noticed that sometimes errors in my url conf will cause strange
> unrelated errors that have sent me down paths that don't need to be
> followed because it's a simple typo. I can't seem to find it here but
> maybe I need another set of eyes on it.
>
>    (r'^projects/', include('projects.urls.projects')),
>
> # projects/urls/projects.py
>
> from django.conf.urls.defaults import *
> from projects.models import Project
>
>
Your projects module (that contains urls and models and whatever) is hidden,
for code inside projects.py by the projects.py module itself. THAT projects
module does not have a submodule named models, so the import here will fail.


Karen

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to