I recreated the app manually instead of startapp and it works now, any
idea why that is?

On Nov 23, 10:16 pm, neridaj <[email protected]> wrote:
> I changed my app name, model names, and url names to the following and
> still get the error:
>
> project/
>     __init__.py
>     admin.py
>     models.py
>     views.py
>     urls/
>         __init__.py
>         web.py
>
> mysite/
>     urls.py
>
>     (r'^sites/', include('project.urls.web')),
>
> project/
>     urls/
>         web.py
>
> from django.conf.urls.defaults import *
> from project.models import WebProject
>
> web_project_info_dict = {
>     'queryset': WebProject.objects.all(),
>
> }
>
> urlpatterns = patterns('django.views.generic.list_detail',
>     (r'^$', 'object_list', web_project_info_dict),
>     (r'^(?P<slug>[-\w]+)/$', 'object_detail', web_project_info_dict),
> )
>
> On Nov 23, 5:32 pm, Karen Tracey <[email protected]> wrote:
>
> > On Mon, Nov 23, 2009 at 8:21 PM, neridaj <[email protected]> wrote:
> > > 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
>
> > I don't see a file blog/urls/blog.py in which there is a "from blog.models
> > import something"
>
> > > projects/
> > >    __init__.py
> > >    admin.py
> > >    models.py
> > >    tests.py
> > >    urls/
> > >        __init__.py
> > >        projects.py
>
> > The problem is the duplicate projects in projects/urls/projects.py combined
> > with trying, in projects.py "from projects.models import something".  "from
> > projects", inside projects.py, is going to look inside projects.py to
> > satisfy the import.
>
> > 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.


Reply via email to