I don't see the difference between how the urls are setup for my blog
app and my projects app:
blog/
__init__.py
admin.py
feeds.py
models.py
views.py
urls/
__init__.py
categories.py
entries.py
links.py
tags.py
projects/
__init__.py
admin.py
models.py
tests.py
urls/
__init__.py
projects.py
On Nov 23, 1:38 pm, Karen Tracey <[email protected]> wrote:
> On Mon, Nov 23, 2009 at 2:46 PM, neridaj <[email protected]> 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 [email protected].
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.